Skip to content

keyboard layout change to CTRL-Shift/ALT-Shift breaks other shortcuts starting with CTRL-Shift/ALT-Shift #420

Description

@ezhan

Trying to move from Windows to Linux & KDE (Gnome is affected as well). Found a ground braking misbehavior, making the move for me impossible. I used to change layouts with CTRL-Shift on Windows for 30 years as many other users.

Many multi language users suffers from this issue.

STEPS TO REPRODUCE

  1. Add keyboard layouts: English, Estonian, Russian (it should work with only two added languages, but I have three of them)
  2. Set keyboard language switcher to CTRL-Shift

Try to:
a) in Firefox close a tab and reopen it with CTRL-Shift-T shortcut
b) in Konsole try to copy a text with CTRL-Shift-C shortcut
c) any CTRL-Shift-X combinations in any program that supports any of such shortcuts

OBSERVED RESULT
a) opens a new tab
b) sends CTRL-C to terminate a command
c) any CTRL-Shift-X will not work

EXPECTED RESULT
a) reopens a closed tab
b) copies selected text
c) shortcuts works as designed by the program

THE PROBLEM ROOT
Pressing CTRL-Shift immediately changes the language, so the pressed letter does not do anything. Why? Of XBD standard. XBM triggers on pressing of a button, not on a release.

More information:
A 20 years old bug for X11: https://bugs.freedesktop.org/show_bug.cgi?id=865
KDE discussion: https://bugs.kde.org/show_bug.cgi?id=383113

There is a patched X11 available, but since all moves to Wayland, it is not an option anymore:
https://www.shellhacks.com/ctrl-shift-key-not-working-ubuntu-linux-mint/


EDIT 2024-06-17:

Now I have the exact guide to workaround this problem in KDE 6.1 and newer (release is scheduled for next week, 18.06.2024).

  1. Open Settings -> Keyboard -> Layouts
  2. Delete the assigned MAIN shortcut (CTRL-Shift or ALT-Shift), you may have to uncheck it in "Key Bindings" and apply.
  3. Assign Ctrl+Shift as ALTERNATIVE shortcut and apply.

Now it works as desired!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedIndicates that a maintainer wants help on an issue or pull requeststateIndicates a need for improvements or additions to the xkb_state API

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions