Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit dd4ea5d

Browse files
Merge pull request #1916 from livecode/bugfix-20647
[Bug 20647] Ensure Dictionary traps cmd+W
2 parents 00422b8 + 0275a17 commit dd4ea5d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Toolset/palettes/dictionary/behaviors/revdictionarybehavior.livecodescript

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
script "revDictionaryBehavior"
1+
script "revDictionaryBehavior" with behavior "revPaletteBehavior"
22
-- The dictionary starts to hide elements at lower than 992 pixels
33
-- *TODO* Tweak the CSS to rearrange things appropriately
44
constant kDictionaryMinWidth = 992
@@ -86,5 +86,11 @@ end linkClicked
8686

8787
# bug 17819 enable cmd+c in dictionary
8888
on commandKeyDown pWhich
89-
if pWhich is not "C" then pass commandKeyDown
89+
if pWhich is not "C" then
90+
if pWhich is "W" then
91+
close me
92+
else
93+
pass commandKeyDown
94+
end if
95+
end if
9096
end commandKeyDown

notes/bugfix-20647.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ensure Dictionary responds to cmd+W shortcut

0 commit comments

Comments
 (0)