From 4f89aee77ede589002ab75490fa1ab2a3ca3fe84 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 27 Sep 2020 08:06:35 +0200 Subject: Change ctrl+s to ctrl+c for copying url to clipboard --- src/QuickMedia.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/QuickMedia.cpp') diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 7c718e5..b596b06 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -1641,7 +1641,7 @@ namespace QuickMedia { content_url = selected_item->url; content_title = selected_item->get_title(); load_video_error_check(); - } else if(event.key.code == sf::Keyboard::S && event.key.control) { + } else if(event.key.code == sf::Keyboard::C && event.key.control) { save_video_url_to_clipboard(); } } @@ -1663,7 +1663,7 @@ namespace QuickMedia { if(!cursor_visible) window.setMouseCursorVisible(true); cursor_visible = true; - } else if(pressed_keysym == XK_s && pressing_ctrl) { + } else if(pressed_keysym == XK_c && pressing_ctrl) { save_video_url_to_clipboard(); } } @@ -1681,8 +1681,7 @@ namespace QuickMedia { show_notification("Video player", "Failed to connect to mpv ipc after 10 seconds", Urgency::CRITICAL); current_page = previous_page; break; - } else if(update_err == VideoPlayer::Error::EXITED && (video_player->exit_status == 0 || video_player->exit_status == 4)) { - // The exit status is 0 when 'q' is used and the exist status is 4 when ctrl+c is used. + } else if(update_err == VideoPlayer::Error::EXITED && video_player->exit_status == 0) { fprintf(stderr, "mpv exited with status 0, the user most likely closed mpv with 'q'\n"); current_page = previous_page; break; -- cgit v1.2.3