summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorculler <culler>2019-10-23 21:52:37 (GMT)
committerculler <culler>2019-10-23 21:52:37 (GMT)
commit08fe0c62213c3897a4afcf8ee9c2de44d61f1442 (patch)
tree4ec1919de95da102c3f5992b2723b6c6c4d75f92 /library
parente52422e60cb9265936b53ae27a0ee159416221db (diff)
downloadtk-08fe0c62213c3897a4afcf8ee9c2de44d61f1442.zip
tk-08fe0c62213c3897a4afcf8ee9c2de44d61f1442.tar.gz
tk-08fe0c62213c3897a4afcf8ee9c2de44d61f1442.tar.bz2
Rework and simplify services so the TkService object won't interfere with IME. It didn't need to be a subclass of NSView, or be in the Responder chain.
Diffstat (limited to 'library')
-rw-r--r--library/entry.tcl5
-rw-r--r--library/text.tcl6
-rw-r--r--library/tk.tcl5
-rw-r--r--library/ttk/entry.tcl7
4 files changed, 0 insertions, 23 deletions
diff --git a/library/entry.tcl b/library/entry.tcl
index 8d1b1b3..36c331d 100644
--- a/library/entry.tcl
+++ b/library/entry.tcl
@@ -74,11 +74,6 @@ bind Entry <<TraverseIn>> {
# Standard Motif bindings:
-bind Entry <Map> {
- if {[tk windowingsystem] eq "aqua"} {
- ::tk::RegisterServiceWidget %W
- }
-}
bind Entry <1> {
tk::EntryButton1 %W %x
%W selection clear
diff --git a/library/text.tcl b/library/text.tcl
index c4e3388..0530cf5 100644
--- a/library/text.tcl
+++ b/library/text.tcl
@@ -42,12 +42,6 @@
# Standard Motif bindings:
-bind Text <Map> {
- if {[tk windowingsystem] eq "aqua"} {
- ::tk::RegisterServiceWidget %W
- }
-}
-
bind Text <1> {
tk::TextButton1 %W %x %y
%W tag remove sel 0.0 end
diff --git a/library/tk.tcl b/library/tk.tcl
index 572c1f0..60107cf 100644
--- a/library/tk.tcl
+++ b/library/tk.tcl
@@ -687,11 +687,6 @@ if {[tk windowingsystem] eq "aqua"} {
if {[tk windowingsystem] eq "aqua"} {
- #register to send data to macOS Services
- proc ::tk::RegisterServiceWidget {w} {
- ::tk::mac::registerServiceWidget $w
- }
-
#stub procedures to respond to "do script" Apple Events
proc ::tk::mac::DoScriptFile {file} {
source $file
diff --git a/library/ttk/entry.tcl b/library/ttk/entry.tcl
index 8f21ecc..6a34488 100644
--- a/library/ttk/entry.tcl
+++ b/library/ttk/entry.tcl
@@ -58,13 +58,6 @@ option add *TEntry.cursor [ttk::cursor text] widgetDefault
# and I'll put it back.
#
-##Bindings to register with macOS Services API.
-bind T.Entry <Map> {
- if {[tk windowingsystem] eq "aqua"} {
- ::tk::RegisterServiceWidget %W
- }
-}
-
## Clipboard events:
#
bind TEntry <<Cut>> { ttk::entry::Cut %W }