Skip to content

Commit

Permalink
ui_esc_close:true - dont quit if multi-carets and esc press
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-T committed Oct 27, 2022
1 parent 97c086c commit 66e5592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/formmain.pas
Original file line number Diff line number Diff line change
Expand Up @@ -3127,7 +3127,7 @@ procedure TfmMain.FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState
if bEditorActive then
begin
Ed:= Ctl as TATSynEdit;
if Ed.Carets.IsSelection then
if (Ed.Carets.Count>1) or Ed.Carets.IsSelection then
begin
KeyArray.Clear;
N:= Ed.Keymap.GetCommandFromShortcut(ShortCut(VK_ESCAPE, []), KeyArray);
Expand Down

0 comments on commit 66e5592

Please sign in to comment.