summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authordas <das>2003-02-21 03:34:27 (GMT)
committerdas <das>2003-02-21 03:34:27 (GMT)
commite0de5bcca2f848dc868d307892756cc82290696a (patch)
treedbacb2ddcc8b2e30b282b5ad405092d34b8afb32 /library
parentbe541dbd983a3d33cc41473c8ea42d515369410f (diff)
downloadtk-e0de5bcca2f848dc868d307892756cc82290696a.zip
tk-e0de5bcca2f848dc868d307892756cc82290696a.tar.gz
tk-e0de5bcca2f848dc868d307892756cc82290696a.tar.bz2
* library/console.tcl: (aqua & macintosh) added missing <Cmd-q>
binding for corresponding Quit menu item shortcut. * macosx/README: updated instructions for embedded build, added various improvements by Russell Owen. * unix/tcl.m4: update from Tcl. * unix/configure: regen.
Diffstat (limited to 'library')
-rw-r--r--library/console.tcl8
1 files changed, 7 insertions, 1 deletions
diff --git a/library/console.tcl b/library/console.tcl
index 955a06b..93f4f30 100644
--- a/library/console.tcl
+++ b/library/console.tcl
@@ -4,7 +4,7 @@
# can be used by non-unix systems that do not have built-in support
# for shells.
#
-# RCS: @(#) $Id: console.tcl,v 1.21 2002/08/31 06:12:28 das Exp $
+# RCS: @(#) $Id: console.tcl,v 1.22 2003/02/21 03:34:29 das Exp $
#
# Copyright (c) 1995-1997 Sun Microsystems, Inc.
# Copyright (c) 1998-2000 Ajuba Solutions.
@@ -456,6 +456,12 @@ proc ::tk::ConsoleBind {w} {
source [file join $tk_library console.tcl]
}
}
+ if {[string equal $::tcl_platform(platform) "macintosh"]
+ || [string equal [tk windowingsystem] "aqua"]} {
+ bind Console <Command-q> {
+ exit
+ }
+ }
bind Console <<Cut>> {
# Same as the copy event
if {![catch {set data [%W get sel.first sel.last]}]} {