aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-02-08 23:48:34 +0100
committerdec05eba <dec05eba@protonmail.com>2021-02-08 23:48:34 +0100
commit34fd966273c4544e4f58fe1b88fc8ea4bbd2b52d (patch)
tree4bc18c317cc2f0c57f88d24960aa34beac68b279 /src
parentb6216bad1cdd523992c4f3b95c3ba703959d8568 (diff)
Matrix: view page immediately after moving room selection
Diffstat (limited to 'src')
-rw-r--r--src/QuickMedia.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 0eb40c3..551da5e 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -4121,16 +4121,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;