diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-09-27 08:06:35 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-09-27 08:06:35 +0200 |
commit | 4f89aee77ede589002ab75490fa1ab2a3ca3fe84 (patch) | |
tree | a93212ed70560d4331de6385a8f8f56d0924abed /src | |
parent | 3eccedbcea41accb708e8cd8e7f956d06c70f4a3 (diff) |
Change ctrl+s to ctrl+c for copying url to clipboard
Diffstat (limited to 'src')
-rw-r--r-- | src/QuickMedia.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
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; |