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 | |
parent | 3eccedbcea41accb708e8cd8e7f956d06c70f4a3 (diff) |
Change ctrl+s to ctrl+c for copying url to clipboard
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | input.conf | 2 | ||||
-rw-r--r-- | src/QuickMedia.cpp | 7 |
3 files changed, 5 insertions, 6 deletions
@@ -44,7 +44,7 @@ Press `Tab` to autocomplete a search when autocomplete is available (currently o Press `Tab` to switch between username/password field in login panel.\ Press `Ctrl + V` to paste the content of your clipboard into the search bar.\ Press `Ctrl + P` to view image/video attached to matrix message.\ -Press `Ctrl + S` to copy the url of the currently playing video to the clipboard (with timestamp). +Press `Ctrl + C` to copy the url of the currently playing video to the clipboard (with timestamp). ## Video controls Press `space` to pause/unpause video. `Double-click` video to fullscreen or leave fullscreen. # Mangadex @@ -1 +1 @@ -Ctrl+s ignore
\ No newline at end of file +Ctrl+c ignore
\ No newline at end of file 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; |