FIX: keyboard layout switching while search is focused (#13428) #13473
+123
−11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Keyboard layout switching doesn't work when Cinnamon text fields are focused. Keybindings like Alt+Shift or Super+Space have no effect because text entry key event handlers stop event propagation.
Extended scope:
This fix now covers ALL (hopefully) Cinnamon text entries, not just the menu:
But please this should be double checked - these are system critical fields, i dont feel enough experienced to be shure i checked every possible caveat here.
The fix has two parts:
The Implementation
handleKeyboardLayoutSwitchingInTextEntry()inutil.jsThis should allow users to switch keyboard layouts while typing in any Cinnamon text field.
Root Cause in my point of view
switch-input-sourcefromglobal.displaytoKeybindingManagerTests done:
Tested on Linux Mint 22.3 Cinnamon 6.6.6 with US + DE layouts:
Fixes #13428, #13513, #13407