From d21f9ff05e48f7d7e4c159f15ab0f5fec3f6313c Mon Sep 17 00:00:00 2001 From: livecodepanos Date: Mon, 26 Feb 2018 16:01:12 +0000 Subject: [PATCH 1/2] [Bug 20647] Ensure Dictionary traps cmd+W --- .../behaviors/revdictionarybehavior.livecodescript | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Toolset/palettes/dictionary/behaviors/revdictionarybehavior.livecodescript b/Toolset/palettes/dictionary/behaviors/revdictionarybehavior.livecodescript index 8209fc06b4..31f0384afc 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 @@ -86,5 +86,11 @@ end linkClicked # 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 From 0275a17688ac7562810dd1691d98e9f90506c978 Mon Sep 17 00:00:00 2001 From: livecodepanos Date: Mon, 26 Feb 2018 16:02:43 +0000 Subject: [PATCH 2/2] [Bug 20647] Added bugfix note --- notes/bugfix-20647.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 notes/bugfix-20647.md 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