Tk Source Code

View Ticket
Login
2015-05-25
03:56 Ticket [3609681fff] terminal loss of focus involving shortcuts and gitk/wish status still Open with 7 other changes artifact: cfc54f9cef user: anonymous
2013-04-11
13:48 Ticket [3610493fff] Keyboard is ignored with SCIM status still Open with 4 other changes artifact: 82d8ae03ff user: eugene_cdn
08:05 Ticket [3610493fff]: 4 changes artifact: af016fa080 user: eugene_cdn
06:43 Ticket [3610493fff]: 4 changes artifact: 9648a79064 user: eugene_cdn
06:37 Ticket [3610493fff]: 4 changes artifact: 6c9bfd924d user: dkf
04:59 Ticket [3610493fff]: 4 changes artifact: 736fa781bd user: eugene_cdn
04:59 Add attachment balloon.tcl to ticket [3610493fff] artifact: 441659d853 user: eugene_cdn
04:58 Add attachment s.tcl to ticket [3610493fff] artifact: f5b88a76b8 user: eugene_cdn
04:58 Ticket [3610493fff] Keyboard is ignored with SCIM status still Open with 4 other changes artifact: b61ccc0bab user: eugene_cdn
2013-04-10
21:58 New ticket [3610493fff]. artifact: bb6c7eb834 user: eugene_cdn

Ticket UUID: 3610493
Title: Keyboard is ignored with SCIM
Type: Bug Version: None
Submitter: eugene_cdn Created on: 2013-04-10 21:58:45
Subsystem: 67. Unix Window Operations Assigned To: jenglish
Priority: 5 Medium Severity:
Status: Open Last Modified: 2013-04-11 13:48:22
Resolution: None Closed By:
    Closed on:
Description:
This is a continuation of 905830 and, maybe, 1919791.
If there is environment variable XMODIFIERS is equal to "@im=SCIM" and scim is running, then in quite often Tk ignores keyboard input.
I am attaching a simple Tk testcase.  It fails with wish 8.4 and 8.5.  OS is Red Hat 5.3, desktop is Gnome.
We had several ways to reproduce the problem, but I selected a shortest one, using tool tips.  I am attaching a script implementing tool tips that
I found years ago and modified a little bit for us.
To reproduce the problem:
1) Find Gnome on Red Hat or possible other Linux.
2) copy both files to any place.
3) setenv XMODIFIERS "@im=SCIM"
4) wish s.tcl
5) move mouse to entry or text widget and wait till a tool tip appears
6) try to type
7) you may need to move mouse in and out the area to update tool tips.
That's it.
Clicking on other window and then back helps to restore input for a while.
User Comments: eugene_cdn added on 2013-04-11 13:48:22:
That variable is most cases is set by Gnome itself.  In my system it is in
   /etc/X11/xinit/xinitrc.d/xinput.sh

eugene_cdn added on 2013-04-11 08:05:34:
Downloaded, built and tested 8.6.0.  The same.

eugene_cdn added on 2013-04-11 06:43:27:
I reproduced it with
   8.4.13 - Linux wish
   8.5b3  - Linux wish8.5
   8.5.5 - my app

dkf added on 2013-04-11 06:37:44:
What *exact* patchlevel of Tk is this? That value is in the global tk_patchLevel variable.

I ask because I'm not sure if we've changed things in this area during the 8.5 lifecycle; we need to know if this is something that might already be fixed but not deployed to your system. Or maybe we've just got the IM handling wrong. (It's historically been a *very* under-documented part of X11.)

eugene_cdn added on 2013-04-11 04:59:07:

File Added - 462474: balloon.tcl

eugene_cdn added on 2013-04-11 04:58:48:

File Added - 462473: s.tcl

Attachments: