diff --git a/Toolset/palettes/dictionary/behaviors/revdictionarybehavior.livecodescript b/Toolset/palettes/dictionary/behaviors/revdictionarybehavior.livecodescript index e13dc4452f..da5f4b51ee 100644 --- a/Toolset/palettes/dictionary/behaviors/revdictionarybehavior.livecodescript +++ b/Toolset/palettes/dictionary/behaviors/revdictionarybehavior.livecodescript @@ -1,4 +1,4 @@ -script "revDictionaryBehavior" +script "revDictionaryBehavior" with behavior "revPaletteBehavior" -- The dictionary starts to hide elements at lower than 992 pixels -- *TODO* Tweak the CSS to rearrange things appropriately constant kDictionaryMinWidth = 992 @@ -93,5 +93,11 @@ end showUpgradeOptions # bug 17819 enable cmd+c in dictionary on commandKeyDown pWhich - if pWhich is not "C" then pass commandKeyDown + if pWhich is not "C" then + if pWhich is "W" then + close me + else + pass commandKeyDown + end if + end if end commandKeyDown diff --git a/notes/bugfix-20647.md b/notes/bugfix-20647.md new file mode 100644 index 0000000000..4a82bc73c0 --- /dev/null +++ b/notes/bugfix-20647.md @@ -0,0 +1 @@ +# Ensure Dictionary responds to cmd+W shortcut