summaryrefslogtreecommitdiffstats
path: root/library/console.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-04-19 19:50:10 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-04-19 19:50:10 (GMT)
commit9519ffb35649873f9567b3631d2680a2f90850ee (patch)
tree1fea5c5e76f6c4c284ca03133bda36141a09665e /library/console.tcl
parent632db03ddf197db7bc4d6c4677cdf964a6b0223b (diff)
downloadtk-9519ffb35649873f9567b3631d2680a2f90850ee.zip
tk-9519ffb35649873f9567b3631d2680a2f90850ee.tar.gz
tk-9519ffb35649873f9567b3631d2680a2f90850ee.tar.bz2
Fix [8dd3d58c62]: macOS Aqua: Fn + e to access Emoji
Diffstat (limited to 'library/console.tcl')
-rw-r--r--library/console.tcl14
1 files changed, 9 insertions, 5 deletions
diff --git a/library/console.tcl b/library/console.tcl
index 30c4d88..d8f7c5c 100644
--- a/library/console.tcl
+++ b/library/console.tcl
@@ -429,9 +429,13 @@ proc ::tk::ConsoleBind {w} {
# <Keypress> class binding will also fire and insert the character
# which is wrong.
- bind Console <Alt-KeyPress> {# nothing }
- bind Console <Meta-KeyPress> {# nothing}
- bind Console <Control-KeyPress> {# nothing}
+ bind Console <Alt-Key> {# nothing }
+ bind Console <Meta-Key> {# nothing}
+ bind Console <Control-Key> {# nothing}
+ if {[tk windowingsystem] eq "aqua"} {
+ bind Console <Command-Key> {# nothing}
+ bind Console <Mod4-Key> {# nothing}
+ }
foreach {ev key} {
<<Console_NextImmediate>> <Control-Key-n>
@@ -587,7 +591,7 @@ proc ::tk::ConsoleBind {w} {
bind Console <Insert> {
catch {tk::ConsoleInsert %W [::tk::GetSelection %W PRIMARY]}
}
- bind Console <KeyPress> {
+ bind Console <Key> {
tk::ConsoleInsert %W %A
}
bind Console <F9> {
@@ -650,7 +654,7 @@ proc ::tk::ConsoleBind {w} {
}
}
- bind PostConsole <KeyPress> {
+ bind PostConsole <Key> {
if {"%A" ne ""} {
::tk::console::TagProc %W
}