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 --- README.md | 2 +- input.conf | 2 +- src/QuickMedia.cpp | 7 +++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index eb53b29..260b320 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/input.conf b/input.conf index 768d21a..f4004ca 100644 --- a/input.conf +++ b/input.conf @@ -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; -- cgit v1.2.3