summaryrefslogtreecommitdiffstats
path: root/library/entry.tcl
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2010-03-17 09:27:23 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2010-03-17 09:27:23 (GMT)
commitb76131c53da56bee1254947caed81e4107ac9f00 (patch)
tree2e11bb5a65563cae5167b16b7d0139a339575fb0 /library/entry.tcl
parenteabca50612fc68732cd733839090e32ade7d1c1d (diff)
downloadtk-b76131c53da56bee1254947caed81e4107ac9f00.zip
tk-b76131c53da56bee1254947caed81e4107ac9f00.tar.gz
tk-b76131c53da56bee1254947caed81e4107ac9f00.tar.bz2
* library/entry.tcl: [Bug 2971663]: Make the <Up> and <Down> keys
* library/ttk/entry.tcl: explicitly do nothing, since Tk-on-Cocoa will generate (invisible zero-width) characters for them otherwise. The explicitly empty bindings are harmless on other platforms.
Diffstat (limited to 'library/entry.tcl')
-rw-r--r--library/entry.tcl5
1 files changed, 4 insertions, 1 deletions
diff --git a/library/entry.tcl b/library/entry.tcl
index b92f8b9..74e70ad 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.27 2010/01/06 18:37:36 dkf Exp $
+# RCS: @(#) $Id: entry.tcl,v 1.28 2010/03/17 09:27:23 dkf Exp $
#
# Copyright (c) 1992-1994 The Regents of the University of California.
# Copyright (c) 1994-1997 Sun Microsystems, Inc.
@@ -215,6 +215,9 @@ bind Entry <Next> {# nothing}
if {[tk windowingsystem] eq "aqua"} {
bind Entry <Command-KeyPress> {# nothing}
}
+# Tk-on-Cocoa generates characters for these two keys. [Bug 2971663]
+bind Entry <Down> {# nothing}
+bind Entry <Up> {# nothing}
# On Windows, paste is done using Shift-Insert. Shift-Insert already
# generates the <<Paste>> event, so we don't need to do anything here.