diff options
author | stanton <stanton@noemail.net> | 1998-08-05 10:44:36 (GMT) |
---|---|---|
committer | stanton <stanton@noemail.net> | 1998-08-05 10:44:36 (GMT) |
commit | 68f488689046f5be7f360861a6cb4cb9a84e12a8 (patch) | |
tree | 94ff763e32f747fb8cf434d8ba1ca95c024edc4e /library | |
parent | 7344439dd97993d6084f2dc09ea83bfb55dfb21a (diff) | |
download | tk-68f488689046f5be7f360861a6cb4cb9a84e12a8.zip tk-68f488689046f5be7f360861a6cb4cb9a84e12a8.tar.gz tk-68f488689046f5be7f360861a6cb4cb9a84e12a8.tar.bz2 |
<Insert> binding in entries was masking the virtual event <<Paste>> binding to Shift-Insert on Windows.
FossilOrigin-Name: 2d9547c552abdb1e981dc180a08207b984ffc4e0
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: |