Changeset 386 for trunk/Settings.pas


Ignore:
Timestamp:
Apr 27, 2021, 6:48:47 PM (3 years ago)
Author:
chronos
Message:
  • Fixed: Remove new key binding from other actions. So one shortcut can control one action.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Settings.pas

    r385 r386  
    244244begin
    245245  if Assigned(CurrentKeyBinding) then begin
     246    if CurrentKeyBinding.ShortCut > 0 then
     247      LocalKeyBindings.RemoveShortCut(CurrentKeyBinding.ShortCut);
     248    if CurrentKeyBinding.ShortCut2 > 0 then
     249      LocalKeyBindings.RemoveShortCut(CurrentKeyBinding.ShortCut2);
    246250    CurrentKeyBinding.ShortCut := TextToShortCut(EditShortCutPrimary.Text);
    247251    CurrentKeyBinding.ShortCut2 := TextToShortCut(EditShortCutSecondary.Text);
Note: See TracChangeset for help on using the changeset viewer.