summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2006-09-06 22:39:28 (GMT)
committerhobbs <hobbs@noemail.net>2006-09-06 22:39:28 (GMT)
commitcc68de7c1d6294f8cfd7695c71825ed9a76c11ba (patch)
tree2ba9cc0bf93a726ed5be5bd91f8d50a43b16fb71 /library
parent614ca8f4ec9a9d12626edf738afe13cc254af7ac (diff)
downloadtk-cc68de7c1d6294f8cfd7695c71825ed9a76c11ba.zip
tk-cc68de7c1d6294f8cfd7695c71825ed9a76c11ba.tar.gz
tk-cc68de7c1d6294f8cfd7695c71825ed9a76c11ba.tar.bz2
* generic/tkEntry.c: move hard-coded ALWAYS_SHOW_SELECTION
* generic/tkInt.h: control of entry/text selection display * generic/tkText.c: based on focus to the Tcl level, * generic/tkWindow.c: controlled by ::tk::AlwaysShowSelection * library/tk.tcl: (boolean, private). [Bug 1553691] * macosx/tkMacOSXDefault.h: * unix/tkUnixDefault.h: * unix/tkUnixPort.h: * win/tkWinDefault.h: FossilOrigin-Name: 25cf9158b784bb5826fdd96a2adf07ad623480a2
Diffstat (limited to 'library')
-rw-r--r--library/tk.tcl9
1 files changed, 6 insertions, 3 deletions
diff --git a/library/tk.tcl b/library/tk.tcl
index ce3d937..ad45cbb 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.56 2006/01/25 18:22:04 dgp Exp $
+# RCS: @(#) $Id: tk.tcl,v 1.57 2006/09/06 22:39:28 hobbs Exp $
#
# Copyright (c) 1992-1994 The Regents of the University of California.
# Copyright (c) 1994-1996 Sun Microsystems, Inc.
@@ -20,7 +20,7 @@ package require -exact Tcl 8.5
namespace eval ::tk {
# Set up the msgcat commands
namespace eval msgcat {
- namespace export mc mcmax
+ namespace export mc mcmax
if {[interp issafe] || [catch {package require msgcat}]} {
# The msgcat package is not available. Supply our own
# minimal replacement.
@@ -340,7 +340,7 @@ if {![llength [info command tk_chooseDirectory]]} {
return [::tk::dialog::file::chooseDir:: {expand}$args]
}
}
-
+
#----------------------------------------------------------------------
# Define the set of common virtual events.
#----------------------------------------------------------------------
@@ -365,6 +365,9 @@ switch -- [tk windowingsystem] {
trace add variable ::tk_strictMotif write ::tk::EventMotifBindings
set ::tk_strictMotif $::tk_strictMotif
+ # On unix, we want to always display entry/text selection,
+ # regardless of which window has focus
+ set ::tk::AlwaysShowSelection 1
}
"win32" {
event add <<Cut>> <Control-Key-x> <Shift-Key-Delete>