Accept Cmd as shortcut modifier
In addition to (left) Alt, also accept (left) Cmd. This is especially convenient for macOS users.
This commit is contained in:
@@ -149,7 +149,7 @@ scrcpy_print_usage(const char *arg0) {
|
||||
" For example, to use either LCtrl+LAlt or LCmd for scrcpy\n"
|
||||
" shortcuts, pass \"lctrl+lalt,lcmd\".\n"
|
||||
"\n"
|
||||
" Default is \"lalt\" (left-Alt).\n"
|
||||
" Default is \"lalt,lcmd\" (left-Alt or left-Cmd).\n"
|
||||
"\n"
|
||||
" -S, --turn-screen-off\n"
|
||||
" Turn the device screen off immediately.\n"
|
||||
@@ -199,7 +199,8 @@ scrcpy_print_usage(const char *arg0) {
|
||||
"Shortcuts:\n"
|
||||
"\n"
|
||||
" In the following list, MOD is the shortcut modifier. By default,\n"
|
||||
" it's (left) Alt, but it can be configured by --shortcut-mod.\n"
|
||||
" it's (left) Alt or (left) Cmd, but it can be configured by\n"
|
||||
" --shortcut-mod.\n"
|
||||
"\n"
|
||||
" MOD+f\n"
|
||||
" Switch fullscreen mode\n"
|
||||
|
||||
@@ -95,8 +95,8 @@ struct scrcpy_options {
|
||||
.last = DEFAULT_LOCAL_PORT_RANGE_LAST, \
|
||||
}, \
|
||||
.shortcut_mods = { \
|
||||
.data = {SC_MOD_LALT}, \
|
||||
.count = 1, \
|
||||
.data = {SC_MOD_LALT, SC_MOD_LCMD}, \
|
||||
.count = 2, \
|
||||
}, \
|
||||
.max_size = DEFAULT_MAX_SIZE, \
|
||||
.bit_rate = DEFAULT_BIT_RATE, \
|
||||
|
||||
Reference in New Issue
Block a user