[Bug] Typing Thai character 'ข' triggers layout switch keybinding set for grave key #15677
Unanswered
aekarita
asked this question in
Bugs - Input
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hyprland version
0.56.1
Is this a regression?
No.
What's the bug?
I set keybindings to switch input layouts (
us<->th) using thegravekey. However, pressing the Thai characterขunexpectedly triggers the layout switch command, toggling the language layout just like pressing thegravekey.This issue occurs specifically on Hyprland (including when using the new
.luaconfiguration format) and does not occur on other Wayland compositors like COSMIC.System Information
hyprland.lua)kb_layout = "us,th"Reproduction steps
Steps to Reproduce
kb_layout = "us,th"inhyprland.lua.gravekey:hl.bind("grave", hl.dsp.exec_cmd("hyprctl switchxkblayout <device> next")).th).ข.Expected Behavior
Typing
ขshould output the characterขinto the active application without switching the input layout.Actual Behavior
Typing
ขtriggers the layout switch action, toggling the input layout between Thai and English identically to pressing thegravekey.Attachments
hyprland.lua config
https://gist.github.com/aekarita/1f26389ce35c8029cb50b2dde0d9defd
Keyboard Visual Reference
For reference, here is the physical key layout being used:

tilde/gravekey (used for switching layouts).-key (which outputs 'ข' in Thai layout, but unexpectedly triggers thegravekeybinding instead).I acknowledge that:
I have searched all (open and closed) discussions and issues and my problem is not there.
I have read the Code of Conduct and agree to follow it.
I wrote this request with my own hands, my own keyboard, and in my own words.
All reactions