diff options
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: |