diff options
author | hobbs <hobbs> | 2007-10-30 18:52:06 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2007-10-30 18:52:06 (GMT) |
commit | a699bf9efe3f6094a221a0ce8815117886be58e9 (patch) | |
tree | 38a9e225cd3891c9e2c6515c08ac72fedbfb5b8c /library/entry.tcl | |
parent | ae9c73369b3ed8460c528ac2e1c86b92cc680be3 (diff) | |
download | tk-a699bf9efe3f6094a221a0ce8815117886be58e9.zip tk-a699bf9efe3f6094a221a0ce8815117886be58e9.tar.gz tk-a699bf9efe3f6094a221a0ce8815117886be58e9.tar.bz2 |
* library/entry.tcl: don't error with Clear event. [Bug 1509288]
Diffstat (limited to 'library/entry.tcl')
-rw-r--r-- | library/entry.tcl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/library/entry.tcl b/library/entry.tcl index 32b1973..feda8ec 100644 --- a/library/entry.tcl +++ b/library/entry.tcl @@ -3,7 +3,7 @@ # This file defines the default bindings for Tk entry widgets and provides # procedures that help in implementing those bindings. # -# RCS: @(#) $Id: entry.tcl,v 1.24 2005/07/25 09:06:00 dkf Exp $ +# RCS: @(#) $Id: entry.tcl,v 1.25 2007/10/30 18:52:06 hobbs Exp $ # # Copyright (c) 1992-1994 The Regents of the University of California. # Copyright (c) 1994-1997 Sun Microsystems, Inc. @@ -60,7 +60,8 @@ bind Entry <<Paste>> { } } bind Entry <<Clear>> { - %W delete sel.first sel.last + # ignore if there is no selection + catch { %W delete sel.first sel.last } } bind Entry <<PasteSelection>> { if {$tk_strictMotif || ![info exists tk::Priv(mouseMoved)] |