summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
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]}]} {