mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-10 05:34:05 -04: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;
|
return kc;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 普通键名直接转换
|
// change key string to keysym, case insensitive
|
||||||
xkb_keysym_t sym = xkb_keysym_from_name(key_str, XKB_KEYSYM_NO_FLAGS);
|
xkb_keysym_t sym =
|
||||||
|
xkb_keysym_from_name(key_str, XKB_KEYSYM_CASE_INSENSITIVE);
|
||||||
|
|
||||||
if (isbindsym) {
|
if (isbindsym) {
|
||||||
kc.type = KEY_TYPE_SYM;
|
kc.type = KEY_TYPE_SYM;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue