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

Commit d21f9ff

Browse files
committed
[Bug 20647] Ensure Dictionary traps cmd+W
1 parent 00422b8 commit d21f9ff

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-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

0 commit comments

Comments
 (0)