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

Commit 4cae6ff

Browse files
Merge pull request #1973 from livecode/bugfix-18585
[Bug 18585] Ensure Dictionary traps cmd+A
2 parents 4436800 + fd57957 commit 4cae6ff

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

Toolset/palettes/dictionary/behaviors/revdictionarybehavior.livecodescript

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,16 @@ end showUpgradeOptions
9393

9494
# bug 17819 enable cmd+c in dictionary
9595
on commandKeyDown pWhich
96-
if pWhich is not "C" then
97-
if pWhich is "W" then
96+
switch pWhich
97+
case "A"
98+
-- trap Cmd + A for select all
99+
case "C"
100+
-- trap Cmd + C for copy
101+
break
102+
case "W"
98103
close me
99-
else
104+
break
105+
default
100106
pass commandKeyDown
101-
end if
102-
end if
107+
end switch
103108
end commandKeyDown

notes/bugfix-18585.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ensure Dictionary does not pass cmd+A

0 commit comments

Comments
 (0)