summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2009-04-13 21:26:35 (GMT)
committerdkf <dkf@noemail.net>2009-04-13 21:26:35 (GMT)
commit18a42d643e8fd36e103b37d66731f6291c5c0b2f (patch)
tree2961a234afa76ccf1597f39e64586970e7f4ef5f /library
parent97026d2829a88e8fd6e9da63e65a36ed458be849 (diff)
downloadtk-18a42d643e8fd36e103b37d66731f6291c5c0b2f.zip
tk-18a42d643e8fd36e103b37d66731f6291c5c0b2f.tar.gz
tk-18a42d643e8fd36e103b37d66731f6291c5c0b2f.tar.bz2
Fix the other issue from [Bug 2759119].
FossilOrigin-Name: c56cfc065a1f2197bd8c84619253af4dea0e3c9e
Diffstat (limited to 'library')
-rw-r--r--library/tk.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/tk.tcl b/library/tk.tcl
index ac813d1..7f7926a 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.85 2009/04/11 12:49:49 dkf Exp $
+# RCS: @(#) $Id: tk.tcl,v 1.86 2009/04/13 21:26:36 dkf Exp $
#
# Copyright (c) 1992-1994 The Regents of the University of California.
# Copyright (c) 1994-1996 Sun Microsystems, Inc.
@@ -369,7 +369,7 @@ switch -exact -- [tk windowingsystem] {
event add <<Undo>> <Control-Key-z> <Control-Lock-Key-Z>
event add <<Redo>> <Control-Key-Z> <Control-Lock-Key-z>
event add <<ContextMenu>> <Button-3>
- if {$tcl_platform(os) eq "Darwin"} {
+ if {[info exists tcl_platform(os)] && $tcl_platform(os) eq "Darwin"} {
event add <<ContextMenu>> <Button-2>
}