diff options
author | stanton <stanton> | 1998-08-05 10:44:37 (GMT) |
---|---|---|
committer | stanton <stanton> | 1998-08-05 10:44:37 (GMT) |
commit | 90aa98fef68556c158bf6fc0f31f37067a0f0bc2 (patch) | |
tree | 94ff763e32f747fb8cf434d8ba1ca95c024edc4e /library | |
parent | 9e971ab4ab8310aa759a311203e1ef2be11f8e1f (diff) | |
download | tk-90aa98fef68556c158bf6fc0f31f37067a0f0bc2.zip tk-90aa98fef68556c158bf6fc0f31f37067a0f0bc2.tar.gz tk-90aa98fef68556c158bf6fc0f31f37067a0f0bc2.tar.bz2 |
<Insert> binding in entries was masking the virtual event <<Paste>> binding to Shift-Insert on Windows.
Diffstat (limited to 'library')
-rw-r--r-- | library/entry.tcl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/library/entry.tcl b/library/entry.tcl index 62ee9b2..e03b3c3 100644 --- a/library/entry.tcl +++ b/library/entry.tcl @@ -205,8 +205,12 @@ if {$tcl_platform(platform) == "macintosh"} { bind Entry <Command-KeyPress> {# nothing} } -bind Entry <Insert> { - catch {tkEntryInsert %W [selection get -displayof %W]} +# On Windows, paste is done using Shift-Insert. Shift-Insert already +# generates the <<Paste>> event, so we don't need to do anything here. +if {$tcl_platform(platform) != "windows"} { + bind Entry <Insert> { + catch {tkEntryInsert %W [selection get -displayof %W]} + } } # Additional emacs-like bindings: |