aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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()) {