opened 04:11PM - 02 May 25 UTC
closed 06:45PM - 02 May 25 UTC
When using libxkbcommon 1.9.0 under X11 (OpenSuse Tumbleweed), enabling Caps Loc…k causes several non-character keys such as Up, Down, Left, Right, Delete, Home, End, PgUp, PgDown to stop functioning properly in Qt applications.
The issue does not occur in Wayland sessions (with the same libxkbcommon version) and X11 with libxkbcommon 1.8.1
With Caps Lock ON, pressing keys like Up or Delete produces broken QKeyEvent objects in Qt :
> qt.qpa.events: Event | XCB_KEY_PRESS(2)
> qt.qpa.keymapper: Computing possible key combinations for QKeyEvent(ShortcutOverride, 0, nativeScanCode=111, nativeVirtualKey=0)
> qt.qpa.keymapper: Resulting possible key combinations:
> qt.gui.shortcutmap: Creating new sequences for QKeyEvent(ShortcutOverride, 0) with ignoredModifiers= QFlags<Qt::KeyboardModifier>(NoModifier)
> qt.gui.shortcutmap: Possible input sequences: QList()
Steps to reproduce:
* start nano (or vim or vi) under konsole, or start kate and create a new document.
* Enter some text with caps lock off.
* Turn caps lock on. At this point, the keys up, down, home, end, page up, page down do not work. The key "delete" behave like "backspace" when pressed in nano or vim, and does not work at all in kate. The key "backspace" works as expected in nano and vim but does not work at all in kate.
* Turn caps lock off, the keys up, down, home, end, page up, page down and delete work as expected.