From f5095255dcf8fd567fa6892589dde5d05ccfc45b Mon Sep 17 00:00:00 2001 From: martin Date: Sat, 7 Mar 2009 14:32:54 +0000 Subject: [PATCH] SynEdit/KeyMapping: Fix revision 18909 #d84d274464 / KeyBindings => The fix was to eager, and removed some valid Bindings git-svn-id: trunk@18911 - --- ide/keymapping.pp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ide/keymapping.pp b/ide/keymapping.pp index 4a8cb43bb0..a2541dd79b 100644 --- a/ide/keymapping.pp +++ b/ide/keymapping.pp @@ -2741,7 +2741,9 @@ begin Key.Shift2:=CurRelation.ShortcutB.Shift2; end; inc(KeyCnt); - end else begin + end + else + if MaxKeyCnt > 0 then begin // Key with a different ecCommand => Remove if it has a conflicting keystroke(s) if ( (CurRelation.ShortcutA.Key1 <> VK_UNKNOWN) and (Key.Key = CurRelation.ShortcutA.Key1) and