Bug 247966 - Keyboard layout resets when faking keyboard input
Summary: Keyboard layout resets when faking keyboard input
Status: RESOLVED FIXED
Alias: None
Product: kxkb
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Andriy Rysin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-15 17:34 UTC by wonderz
Modified: 2010-08-18 03:22 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 4.5.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wonderz 2010-08-15 17:34:17 UTC
Version:           unspecified (using KDE 4.5.0) 
OS:                Linux

Any keyboard simulator (xdotool, xte, KDE virtual keyboard) resets the keyboard layout (language) to the default in all other windows.

Reproducible: Always

Steps to Reproduce:
1) Open Kate, switch keyboard layout from default (en to ru, for example)
2) Open konsole, execute: xte 'key A' (xautomation must be installed)
3) Return to the Kate window.


Actual Results:  
Layout in Kate is switched to default again.

Expected Results:  
Layout in Kate must be unchanged.
Comment 1 Andriy Rysin 2010-08-16 04:36:43 UTC
Which layout switching mode is used Global or Application/Window ?
Comment 2 wonderz 2010-08-16 07:45:29 UTC
The bug can be reproduced in both "application" and "window" modes.
Comment 3 wonderz 2010-08-17 15:10:58 UTC
At least please provide a workaround. This bug is killing me, I can't use IM applications normally. Is there a way to simulate keyboard input without resetting the keyboard layout?
Comment 4 Andriy Rysin 2010-08-18 03:11:47 UTC
This is quite ugly - I've tried kvkbd and when you press a key it resets the whole keyboard layout map, on this event keyboard module just resets all active layouts to default.

I'll take a look if I can ignore this event in case layouts actually didn't change.
Comment 5 Andriy Rysin 2010-08-18 03:22:20 UTC
SVN commit 1164935 by rysin:

Don't reset keyboard layout map if they haven't actually changed
BUG: 247966
FIXED-IN: 4.5.1


 M  +2 -2      keyboard_daemon.cpp  
 M  +7 -3      layout_memory.cpp  
 M  +2 -1      layout_memory.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1164935
Comment 6 Andriy Rysin 2010-08-18 03:22:59 UTC
SVN commit 1164936 by rysin:

Don't reset keyboard layout map if they haven't actually changed
BUG: 247966

 M  +2 -2      keyboard_daemon.cpp  
 M  +7 -3      layout_memory.cpp  
 M  +2 -1      layout_memory.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1164936