From c7b3e8d6ca8ff7107e1db5111d22654afda75da4 Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Tue, 19 Apr 2022 11:11:00 +0000 Subject: Fix [8dd3d58c62]: macOS Aqua: Fn + e to access Emoji --- library/console.tcl | 3 ++- library/entry.tcl | 3 ++- library/spinbox.tcl | 3 ++- library/text.tcl | 3 ++- library/ttk/entry.tcl | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/library/console.tcl b/library/console.tcl index 07b199e..980b2a1 100644 --- a/library/console.tcl +++ b/library/console.tcl @@ -424,7 +424,7 @@ proc ::tk::ConsoleBind {w} { # gets and overhaul of how it handles input -- hobbs bind Console {} - # Ignore all Alt, Meta, and Control keypresses unless explicitly bound. + # Ignore all Alt, Meta, Control, and Mod4 keypresses unless explicitly bound. # Otherwise, if a widget binding for one of these is defined, the # class binding will also fire and insert the character # which is wrong. @@ -432,6 +432,7 @@ proc ::tk::ConsoleBind {w} { bind Console {# nothing } bind Console {# nothing} bind Console {# nothing} + bind Console {# nothing} foreach {ev key} { <> diff --git a/library/entry.tcl b/library/entry.tcl index dc9366b..2576317 100644 --- a/library/entry.tcl +++ b/library/entry.tcl @@ -196,7 +196,7 @@ bind Entry { tk::EntryInsert %W %A } -# Ignore all Alt, Meta, and Control keypresses unless explicitly bound. +# Ignore all Alt, Meta, Control, and Mod4 keypresses unless explicitly bound. # Otherwise, if a widget binding for one of these is defined, the # class binding will also fire and insert the character, # which is wrong. Ditto for Escape, Return, and Tab. @@ -211,6 +211,7 @@ bind Entry {# nothing} bind Entry {# nothing} bind Entry {# nothing} bind Entry {# nothing} +bind Entry {# nothing} # Tk-on-Cocoa generates characters for these two keys. [Bug 2971663] bind Entry <> {# nothing} bind Entry <> {# nothing} diff --git a/library/spinbox.tcl b/library/spinbox.tcl index 3a9e808..8d516bc 100644 --- a/library/spinbox.tcl +++ b/library/spinbox.tcl @@ -205,7 +205,7 @@ bind Spinbox { ::tk::EntryInsert %W %A } -# Ignore all Alt, Meta, and Control keypresses unless explicitly bound. +# Ignore all Alt, Meta, Control, and Mod4 keypresses unless explicitly bound. # Otherwise, if a widget binding for one of these is defined, the # class binding will also fire and insert the character, # which is wrong. Ditto for Escape, Return, and Tab. @@ -220,6 +220,7 @@ bind Spinbox {# nothing} bind Spinbox {# nothing} bind Spinbox {# nothing} bind Spinbox {# nothing} +bind Spinbox {# nothing} # On Windows, paste is done using Shift-Insert. Shift-Insert already # generates the <> event, so we don't need to do anything here. diff --git a/library/text.tcl b/library/text.tcl index 6392d62..92446a5 100644 --- a/library/text.tcl +++ b/library/text.tcl @@ -298,7 +298,7 @@ bind Text { tk::TextInsert %W %A } -# Ignore all Alt, Meta, and Control keypresses unless explicitly bound. +# Ignore all Alt, Meta, Control, and Mod4 keypresses unless explicitly bound. # Otherwise, if a widget binding for one of these is defined, the # class binding will also fire and insert the character, # which is wrong. Ditto for . @@ -309,6 +309,7 @@ bind Text {# nothing} bind Text {# nothing} bind Text {# nothing} bind Text {# nothing} +bind Text {# nothing} # Additional emacs-like bindings: diff --git a/library/ttk/entry.tcl b/library/ttk/entry.tcl index f0211c6..cf41315 100644 --- a/library/ttk/entry.tcl +++ b/library/ttk/entry.tcl @@ -119,7 +119,7 @@ bind TEntry { ttk::entry::Insert %W %A } bind TEntry { ttk::entry::Delete %W } bind TEntry { ttk::entry::Backspace %W } -# Ignore all Alt, Meta, and Control keypresses unless explicitly bound. +# Ignore all Alt, Meta, Control, and Mod4 keypresses unless explicitly bound. # Otherwise, the class binding will fire and insert the character. # Ditto for Escape, Return, and Tab. # @@ -131,6 +131,7 @@ bind TEntry {# nothing} bind TEntry {# nothing} bind TEntry {# nothing} bind TEntry {# nothing} +bind TEntry {# nothing} # Tk-on-Cocoa generates characters for these two keys. [Bug 2971663] bind TEntry <> {# nothing} -- cgit v0.12