freebsd-ports/chinese/tk83/files/patch-an
Kevin Lo 2c54b710d9 Chineselized Tk ver. 8.3.0. This version is i18n improvement.
This changes the behavior of Tk on X where X Input Methods (XIM) were
recognized and used without question.
With 8.3, they will be recognized and initialized, but not used unless
XIM is turned on (tk useinputmethods 1).  This should only affect users
users with special input methods, and the new default behavior should
be more beneficial to the average user.

Please repo copy, thanks.
2001-02-22 04:09:59 +00:00

16 lines
428 B
Text

--- ../library/entry.tcl.orig Thu Jan 6 02:22:24 2000
+++ ../library/entry.tcl Wed Feb 21 21:27:44 2001
@@ -214,6 +214,13 @@
}
}
+# input method configuration binding (unix only)
+if {![string compare $tcl_platform(platform) "unix"]} {
+ if {[string compare [info commands imconfigure] {}]} {
+ bind Entry <FocusIn> {catch {imconfigure %W}}
+ }
+}
+
# Additional emacs-like bindings:
bind Entry <Control-a> {