mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-12-18 22:14:20 +01:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user