Bug 256988

Summary: advanced keyboard settings have no effect
Product: [Applications] systemsettings Reporter: Ivan D Vasin <ivan>
Component: kcm_keyboard_layoutAssignee: Andriy Rysin <arysin>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: NOR    
Version: 1.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Ivan D Vasin 2010-11-15 17:06:46 UTC
Version:           1.0 (using KDE 4.5.3) 
OS:                Linux

i enabled "Swap ESC and CapsLock" in "System Settings -> Input Devices -> Keyboard -> Advanced -> Configure keyboard options".  this was working fine until i switched my keyboard model (in "... -> Keyboard -> Hardware -> Keyboard model") to "Apple | MacBook/MacBook Pro", which corresponds to the true model of my primary keyboard.  after i did that, ESC and CapsLock were no longer swapped, regardless of the keyboard i used, and (as a separate but seemingly related issue) layout switching exhibited inconsistent behavior in various applications.

changing the keyboard model setting back to "Generic | Evdev-managed keyboard" provides a reliable workaround.

Reproducible: Always

Steps to Reproduce:
1. enable "Swap ESC and CapsLock".
2. select keyboard model "Apple | MacBook/MacBook Pro".
3. press ESC.

Actual Results:  
the settings are set as desired, but pressing ESC triggers an ESC instead of toggling CapsLock.

Expected Results:  
either one of:
  * pressing ESC should toggle CapsLock.
  * attempting to enable "Swap ESC and CapsLock" and "Apple | MacBook/MacBook Pro" (and similarly failing combinations) together should be prevented in the UI.

OS: Linux (x86_64) release 2.6.35-23-generic
Compiler: cc
Comment 1 Andriy Rysin 2010-11-17 04:52:53 UTC
Unfortunately KDE keyboard daemon does not deal with keyboard models and the options. I suggest you file this bug at https://bugs.freedesktop.org/ for xkeyboard-config daemon. If you could also put a link to that bug here so others interested can trace that would be much appreciated.
Comment 2 Andriy Rysin 2010-11-17 04:53:33 UTC
Sorry, by "xkeyboard-config daemon" I meant "xkeyboard-config" component.
Comment 3 Andriy Rysin 2010-11-20 17:29:30 UTC
Marking as UPSTREAM.