summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-10-10 16:34:51 (GMT)
committerhobbs <hobbs>2002-10-10 16:34:51 (GMT)
commit79d7d5577381a68d73e7989f75e0c556b6abe352 (patch)
tree2504a75b5909f201990d3b9c31ceea120bb537e7 /library
parent3ba47759656cee10b3115b5b96268aad0da4aa9f (diff)
downloadtk-79d7d5577381a68d73e7989f75e0c556b6abe352.zip
tk-79d7d5577381a68d73e7989f75e0c556b6abe352.tar.gz
tk-79d7d5577381a68d73e7989f75e0c556b6abe352.tar.bz2
* library/tk.tcl: simplified the adding of extra <ISO_Left_Tab>
and <hpBackTab> events to <<PrevWindow>>.
Diffstat (limited to 'library')
-rw-r--r--library/tk.tcl20
1 files changed, 7 insertions, 13 deletions
diff --git a/library/tk.tcl b/library/tk.tcl
index cb6e662..f9abc6c 100644
--- a/library/tk.tcl
+++ b/library/tk.tcl
@@ -3,7 +3,7 @@
# Initialization script normally executed in the interpreter for each
# Tk-based application. Arranges class bindings for widgets.
#
-# RCS: @(#) $Id: tk.tcl,v 1.44 2002/09/09 23:52:02 hobbs Exp $
+# RCS: @(#) $Id: tk.tcl,v 1.45 2002/10/10 16:34:51 hobbs Exp $
#
# Copyright (c) 1992-1994 The Regents of the University of California.
# Copyright (c) 1994-1996 Sun Microsystems, Inc.
@@ -350,18 +350,12 @@ switch [tk windowingsystem] {
# that is returned when the user presses <Shift-Tab>. In order for
# tab traversal to work, we have to add these keysyms to the
# PrevWindow event.
- # The info exists is necessary, because tcl_platform(os) doesn't
- # exist in safe interpreters.
- if {[info exists tcl_platform(os)]} {
- switch $tcl_platform(os) {
- "IRIX" -
- "Linux" { event add <<PrevWindow>> <ISO_Left_Tab> }
- "HP-UX" {
- # This seems to be correct on *some* HP systems.
- catch { event add <<PrevWindow>> <hpBackTab> }
- }
- }
- }
+ # We use catch just in case the keysym isn't recognized.
+ # This is needed for XFree86 systems
+ catch { event add <<PrevWindow>> <ISO_Left_Tab> }
+ # This seems to be correct on *some* HP systems.
+ catch { event add <<PrevWindow>> <hpBackTab> }
+
trace variable ::tk_strictMotif w ::tk::EventMotifBindings
set ::tk_strictMotif $::tk_strictMotif
}