Bug 177654

Summary: keyboards not mapping correctly with QShortcut
Product: [Unmaintained] kxkb Reporter: David Johnson <david>
Component: generalAssignee: Andriy Rysin <arysin>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Sample code demonstrating problem

Description David Johnson 2008-12-13 06:24:19 UTC
Version:            (using Devel)
Compiler:          gcc (GCC) 4.3.2 
OS:                Linux
Installed from:    Compiled sources

Investigating bug 167208, it turns out this is general to KDE using kxcd.

1) Run kcalc, or attached sample code reproducing problem.
2) Set keymap to "us" using kxcb
3) Type +, -, *. /, and observe appropriate keys being pressed.
4) Set keymap to "de" using kxcb
5) Repeat #3. On "de" layout, slash should be Shift-7, but this does not work. But the us layout does (slash to left of right shift).
6) Set keymap to "de" using setxkmap.
7) Repeat #3. Everything works as expected.
Comment 1 David Johnson 2008-12-13 06:25:10 UTC
Created attachment 29286 [details]
Sample code demonstrating problem
Comment 2 Andriy Rysin 2008-12-13 06:33:55 UTC
1. what is kxcd ?
2. why do you think it's keyboard layout switcher problem?
Comment 3 David Johnson 2008-12-13 07:20:46 UTC
kxcd is the KDE keyboard switcher. The typical way to run kxcd is through System Settings -> Regional & Language -> Keyboard Layout. When you check "Enable Keyboard Layouts", then kxcd is run. It has a systray icon showing the flag of the current layout. I think this is a kxcd problem, because it doesn't happen with other keyboard switchers. It doesn't happen in KDE 3, but it does happen in other window managers when switching keyboard layouts with kxcd.
Comment 4 Andriy Rysin 2008-12-13 19:09:40 UTC
1. The name of KDE keyboard switcher program is actually kxkb (the same as component name this bug is filed against)
2. Please try to copy the command from kxkb configuration having main shortcut defined (it'll be something like 'setxkbmap -layouts us,de ...') and execute it from command line, then exit kxkb and try to switch layouts with main shortcut (it'll be done with pure x.org without kxkb)

If the problem persists it's not kxkb problem.

P.S. in KDE3 kxkb used wrong method - it was switching layouts instead of groups which is discouraged.
Comment 5 David Johnson 2008-12-13 20:31:45 UTC
Sorry, I am not a good typist. I meant kxkb.
Comment 6 David Johnson 2008-12-13 20:45:09 UTC
You are right. The problem seems to be when I submit a list of layouts, and the us is first. I can reproduce the problem with "setxkbmap us,de", but not with "kxkb de,us".

I'm sending this back to Nokia. Sorry for taking your time.