diff --git a/app/scrcpy.1 b/app/scrcpy.1
index a484de84..8548646c 100644
--- a/app/scrcpy.1
+++ b/app/scrcpy.1
@@ -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
diff --git a/app/src/cli.c b/app/src/cli.c
index 2f39ecd9..eb3be306 100644
--- a/app/src/cli.c
+++ b/app/src/cli.c
@@ -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",
diff --git a/app/src/input_manager.c b/app/src/input_manager.c
index b55ad591..a24389eb 100644
--- a/app/src/input_manager.c
+++ b/app/src/input_manager.c
@@ -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) {
diff --git a/doc/shortcuts.md b/doc/shortcuts.md
index 9fe1c0d2..2826c839 100644
--- a/doc/shortcuts.md
+++ b/doc/shortcuts.md
@@ -23,6 +23,7 @@ _[Super] is typically the Windows or Cmd key._
| Action | Shortcut
| ------------------------------------------- |:-----------------------------
+ | Quit | MOD+q
| Switch fullscreen mode | MOD+f \| F11
| Rotate display left | MOD+← _(left)_
| Rotate display right | MOD+→ _(right)_