This commit is contained in:
Romain Vimont 2026-04-20 16:40:32 +00:00 committed by GitHub
commit 4b34c1732c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 12 additions and 0 deletions

View file

@ -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

View file

@ -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",

View file

@ -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) {

View file

@ -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)_