List available shortcut keys on error
Fixes #1681 <https://github.com/Genymobile/scrcpy/issues/1681> Suggested-by: Moritz Schulz <moritzleni@gmail.com>
This commit is contained in:
parent
6cc22e1c5b
commit
d02789ce21
1 changed files with 3 additions and 1 deletions
|
@ -532,7 +532,9 @@ parse_shortcut_mods_item(const char *item, size_t len) {
|
||||||
} else if (STREQ("rsuper", item, key_len)) {
|
} else if (STREQ("rsuper", item, key_len)) {
|
||||||
mod |= SC_MOD_RSUPER;
|
mod |= SC_MOD_RSUPER;
|
||||||
} else {
|
} else {
|
||||||
LOGW("Unknown modifier key: %.*s", (int) key_len, item);
|
LOGE("Unknown modifier key: %.*s "
|
||||||
|
"(must be one of: lctrl, rctrl, lalt, ralt, lsuper, rsuper)",
|
||||||
|
(int) key_len, item);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#undef STREQ
|
#undef STREQ
|
||||||
|
|
Loading…
Reference in a new issue