From e7420ebf98bb65eddcf974e934379f2c6a69a2d7 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Sun, 3 May 2015 09:18:40 +0200 Subject: [PATCH] fix, when shortcut edited in widget options were not updated --- src/ce_staticmacro.pas | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ce_staticmacro.pas b/src/ce_staticmacro.pas index a1929005..46a86500 100644 --- a/src/ce_staticmacro.pas +++ b/src/ce_staticmacro.pas @@ -298,7 +298,7 @@ begin end; {$ENDREGION} -{$REGION Macros things ---------------------------------------------------------} +{$REGION ICEEditableShortCut ---------------------------------------------------} function TCEStaticEditorMacro.scedWantFirst: boolean; begin exit(true); @@ -315,8 +315,11 @@ end; procedure TCEStaticEditorMacro.scedSendItem(const category, identifier: string; aShortcut: TShortcut); begin if category = 'Static macros' then - if identifier = 'invoke' then + if identifier = 'invoke' then begin fCompletor.ShortCut := aShortcut; + fOptionBackup.shortcut := aShortcut; + fOptions.shortcut := aShortcut; + end; end; {$ENDREGION}