mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
Merge 53a5805001 into 175134c0ca
This commit is contained in:
commit
4b34c1732c
4 changed files with 12 additions and 0 deletions
|
|
@ -695,6 +695,10 @@ device disconnects while a session is active, exit code 2 will be returned.
|
|||
In the following list, MOD is the shortcut modifier. By default, it's (left)
|
||||
Alt or (left) Super, but it can be configured by \fB\-\-shortcut\-mod\fR (see above).
|
||||
|
||||
.TP
|
||||
.B MOD+q
|
||||
Quit
|
||||
|
||||
.TP
|
||||
.B MOD+f, F11
|
||||
Switch fullscreen mode
|
||||
|
|
|
|||
|
|
@ -1003,6 +1003,10 @@ static const struct sc_option options[] = {
|
|||
};
|
||||
|
||||
static const struct sc_shortcut shortcuts[] = {
|
||||
{
|
||||
.shortcuts = { "MOD+q" },
|
||||
.text = "Quit",
|
||||
},
|
||||
{
|
||||
.shortcuts = { "MOD+f", "F11" },
|
||||
.text = "Switch fullscreen mode",
|
||||
|
|
|
|||
|
|
@ -525,6 +525,9 @@ sc_input_manager_process_key(struct sc_input_manager *im,
|
|||
switch_fps_counter_state(im);
|
||||
}
|
||||
return;
|
||||
case SDLK_Q:
|
||||
sc_push_event(SDL_EVENT_QUIT);
|
||||
return;
|
||||
}
|
||||
|
||||
if (disconnected) {
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ _<kbd>[Super]</kbd> is typically the <kbd>Windows</kbd> or <kbd>Cmd</kbd> key._
|
|||
|
||||
| Action | Shortcut
|
||||
| ------------------------------------------- |:-----------------------------
|
||||
| Quit | <kbd>MOD</kbd>+<kbd>q</kbd>
|
||||
| Switch fullscreen mode | <kbd>MOD</kbd>+<kbd>f</kbd> \| <kbd>F11</kbd>
|
||||
| Rotate display left | <kbd>MOD</kbd>+<kbd>←</kbd> _(left)_
|
||||
| Rotate display right | <kbd>MOD</kbd>+<kbd>→</kbd> _(right)_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue