From 129f41134adf049529c02d03f596f3550c830bab Mon Sep 17 00:00:00 2001 From: hobbs Date: Tue, 30 Oct 2007 18:53:00 +0000 Subject: * library/entry.tcl: don't error with Clear event. [Bug 1509288] --- ChangeLog | 4 ++++ library/entry.tcl | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 411d53d..e7289f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-10-30 Jeff Hobbs + + * library/entry.tcl: don't error with Clear event. [Bug 1509288] + 2007-10-26 Daniel Steffen * macosx/tkMacOSXWm.c (ApplyMasterOverrideChanges): fix window class of 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 <> { } } bind Entry <> { - %W delete sel.first sel.last + # ignore if there is no selection + catch { %W delete sel.first sel.last } } bind Entry <> { if {$tk_strictMotif || ![info exists tk::Priv(mouseMoved)] -- cgit v0.12