Browse Source

Fix Esc autocomplete (and calltip) cancel.

Martijn Laan 1 year ago
parent
commit
c61bb2f3c2
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Projects/Src/CompForm.pas

+ 2 - 1
Projects/Src/CompForm.pas

@@ -1286,7 +1286,8 @@ begin
     if not FKeyMappedMenus.ContainsKey(AShortCut) then begin
       var ComplexCommand := FActiveMemo.GetComplexCommand(AShortCut);
       if ComplexCommand <> ccNone then begin
-        Key := 0;
+        if Key <> VK_ESCAPE then { Allow Scintilla to see Esc }
+          Key := 0;
         case ComplexCommand of
           ccSelectNextOccurrence:
             ESelectNextOccurrenceClick(Self);