diff options
author | hobbs <hobbs> | 2007-10-30 18:53:00 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2007-10-30 18:53:00 (GMT) |
commit | e605e0ea86f1eed4a5910184e8fb028206362300 (patch) | |
tree | deafe215662827db7e47f48c9776ccaa2e5a23aa /library | |
parent | dccacd0f1a78149149f59ff6380684bbc6bf3fee (diff) | |
download | tk-e605e0ea86f1eed4a5910184e8fb028206362300.zip tk-e605e0ea86f1eed4a5910184e8fb028206362300.tar.gz tk-e605e0ea86f1eed4a5910184e8fb028206362300.tar.bz2 |
* library/entry.tcl: don't error with Clear event. [Bug 1509288]
Diffstat (limited to 'library')
-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 3fb4e67..b0c4ef4 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.21.2.1 2006/01/25 18:21:41 dgp Exp $ +# RCS: @(#) $Id: entry.tcl,v 1.21.2.2 2007/10/30 18:53:01 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)] |