mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-05 04:06:28 -05:00
opt: key name case insensitive in keybind
This commit is contained in:
parent
65fcd58949
commit
8e898417a7
1 changed files with 3 additions and 2 deletions
|
|
@ -779,8 +779,9 @@ KeySymCode parse_key(const char *key_str, bool isbindsym) {
|
|||
return kc;
|
||||
}
|
||||
|
||||
// 普通键名直接转换
|
||||
xkb_keysym_t sym = xkb_keysym_from_name(key_str, XKB_KEYSYM_NO_FLAGS);
|
||||
// change key string to keysym, case insensitive
|
||||
xkb_keysym_t sym =
|
||||
xkb_keysym_from_name(key_str, XKB_KEYSYM_CASE_INSENSITIVE);
|
||||
|
||||
if (isbindsym) {
|
||||
kc.type = KEY_TYPE_SYM;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue