How to prevent Alt+Shift from switching keyboard layout before keyup?

5

1

Motivation: In an appplication I'm using, Alt+Shift+R is taken up by -- well, never mind what, something app-specific. However, on my Linux system (Kubuntu 12.04 specifically), when I press Alt+Shift without depressing any of these two keys, the keyboard layout changes.

Question: How can I make the keyboard layout change in X only take place if I depress Alt and Shift, but not if I press another key before depressing them? So that Alt+Shift+R only affects the application in my example?

einpoklum

Posted 2014-01-08T13:01:15.030

Reputation: 5 032

Have you found the solution? – madhead – 2016-05-26T23:23:12.897

@madhead: Unfortunately not. If I had a lot more reputation I might have offered a bounty. Although... I've learned to tolerate it for lack of an alternative. – einpoklum – 2016-06-20T20:28:30.447

after a quick googling it seems to me that it is a fundamental issue somewhere in XKB (or whatever they use). So, I've switched to Alt + Caps which is almost the same as Alt + Shift and isn't used in other places. – madhead – 2016-06-20T22:21:48.397

@madhead, a newer question linked to this one and seems to have come to a similar conclusion as you did. Your workaround could be useful to others with the same problem. Consider posting it as an answer.

– fixer1234 – 2017-04-17T18:06:37.370

@madhead: It's really not almost the same, it's quite different, and what's more important - it's uncommon and surprising to others :-( – einpoklum – 2017-04-17T19:06:04.673

Answers

1

Possible workaround

Go in Settings -> Text Entry. Change the keyboard shortcut from Super+Space to something else (ex. Ctrl+Space).

Good luck

staad

Posted 2014-01-08T13:01:15.030

Reputation: 131