diff options
author | das <das> | 2003-02-21 03:34:27 (GMT) |
---|---|---|
committer | das <das> | 2003-02-21 03:34:27 (GMT) |
commit | aa18b97645e9e9cc75fe2c6895b100198585b34f (patch) | |
tree | dbacb2ddcc8b2e30b282b5ad405092d34b8afb32 /library | |
parent | bf396626ba343a625b34ad1e925058eb67a55e20 (diff) | |
download | tk-aa18b97645e9e9cc75fe2c6895b100198585b34f.zip tk-aa18b97645e9e9cc75fe2c6895b100198585b34f.tar.gz tk-aa18b97645e9e9cc75fe2c6895b100198585b34f.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.tcl | 8 |
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]}]} { |