aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-10-25 10:22:54 +0200
committerdec05eba <dec05eba@protonmail.com>2022-10-25 10:22:54 +0200
commitba1a3a9fd779e2f403df3a6234370529a511c6ff (patch)
treedcf180fb4be082ffbda3fc0d75ca5f9c13b45c4a /src
parentd77d315eaf5658e93cf7384cc7f1ebf7a86bd87c (diff)
Revert ctrl+q
Diffstat (limited to 'src')
-rw-r--r--src/QuickMedia.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 3e41899..57c5489 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -3587,11 +3587,9 @@ namespace QuickMedia {
KeySym pressed_keysym = XKeycodeToKeysym(disp, xev.xkey.keycode, 0);
#pragma GCC diagnostic pop
bool pressing_ctrl = (CLEANMASK(xev.xkey.state) == ControlMask);
- if(pressed_keysym == XK_q) {
- current_page = previous_page;
- go_to_previous_page = true;
- break;
- } else if(pressed_keysym == XK_Escape || pressed_keysym == XK_q || pressed_keysym == XK_BackSpace) {
+ if(pressed_keysym == XK_q && pressing_ctrl) {
+ window.close();
+ } else if(pressed_keysym == XK_Escape || pressed_keysym == XK_BackSpace) {
if(window_is_fullscreen(disp, window.get_system_handle())) {
if(pressed_keysym != XK_Escape)
video_player->cycle_fullscreen();
@@ -3600,6 +3598,10 @@ namespace QuickMedia {
go_to_previous_page = true;
break;
}
+ } else if(pressed_keysym == XK_q && !pressing_ctrl) {
+ current_page = previous_page;
+ go_to_previous_page = true;
+ break;
} else if(pressed_keysym == XK_f && pressing_ctrl) {
video_player->cycle_fullscreen();
} else if(pressed_keysym == XK_s && pressing_ctrl && !video_page->is_local()) {