From 8a76402e6edd16931a3456abd59df7c2ba735220 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 9 Feb 2021 17:19:32 +0100 Subject: Final shit --- src/QuickMedia.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/QuickMedia.cpp') diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index db17982..0c3bb09 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -4144,16 +4144,28 @@ namespace QuickMedia { if(event.type == sf::Event::KeyPressed && event.key.control && event.key.alt && (chat_state == ChatState::NAVIGATING || chat_state == ChatState::URL_SELECTION)) { if(event.key.code == sf::Keyboard::Up || (event.key.control && event.key.code == sf::Keyboard::K)) { room_tabs[room_selected_tab].body->select_previous_item(); + move_room = true; + goto chat_page_end; } else if(event.key.code == sf::Keyboard::Down || (event.key.control && event.key.code == sf::Keyboard::J)) { room_tabs[room_selected_tab].body->select_next_item(); + move_room = true; + goto chat_page_end; } else if(event.key.code == sf::Keyboard::PageUp) { room_tabs[room_selected_tab].body->select_previous_page(); + move_room = true; + goto chat_page_end; } else if(event.key.code == sf::Keyboard::PageDown) { room_tabs[room_selected_tab].body->select_next_page(); + move_room = true; + goto chat_page_end; } else if(event.key.code == sf::Keyboard::Home) { room_tabs[room_selected_tab].body->select_first_item(); + move_room = true; + goto chat_page_end; } else if(event.key.code == sf::Keyboard::End) { room_tabs[room_selected_tab].body->select_last_item(); + move_room = true; + goto chat_page_end; } else if(event.key.code == sf::Keyboard::Escape) { move_room = false; goto chat_page_end; -- cgit v1.2.3