aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO3
-rw-r--r--src/QuickMedia.cpp14
2 files changed, 4 insertions, 13 deletions
diff --git a/TODO b/TODO
index 819831b..c5e74d2 100644
--- a/TODO
+++ b/TODO
@@ -140,4 +140,5 @@ Add grid view to matrix and navigate between them using alt+arrow keys.
Show reactions in pinned messages tab?
Remove display names from reactions if there are many reactions, and instead group them into: reaction (#number of this type of reaction); for example: 👍 2.
Make reaction and deleted message provisional.
-Allow removing reactions. \ No newline at end of file
+Allow removing reactions.
+When fetching previous messages in matrix, fetching until there are 0 messages or until there is at least 1 visible item. This is needed because right now we could fetch 10 messages, all which are delete/edit/react and it will look like there are no more messages to fetch to the user. \ No newline at end of file
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 210a31b..0e1c295 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -4110,7 +4110,7 @@ namespace QuickMedia {
tabs[selected_tab].body->select_next_page();
} else if(event.key.code == sf::Keyboard::End) {
tabs[selected_tab].body->select_last_item();
- } else if((event.key.code == sf::Keyboard::Left) && selected_tab > 0) {
+ } else if((event.key.code == sf::Keyboard::Left || (event.key.control && event.key.code == sf::Keyboard::H)) && selected_tab > 0) {
tabs[selected_tab].body->clear_cache();
--selected_tab;
read_marker_timer.restart();
@@ -4120,7 +4120,7 @@ namespace QuickMedia {
typing = false;
typing_state_queue.push(false);
}
- } else if((event.key.code == sf::Keyboard::Right) && selected_tab < (int)tabs.size() - 1) {
+ } else if((event.key.code == sf::Keyboard::Right || (event.key.control && event.key.code == sf::Keyboard::L)) && selected_tab < (int)tabs.size() - 1) {
tabs[selected_tab].body->clear_cache();
++selected_tab;
read_marker_timer.restart();
@@ -4260,16 +4260,6 @@ namespace QuickMedia {
url_selection_body.select_first_item();
} else if(event.key.code == sf::Keyboard::End) {
url_selection_body.select_last_item();
- } else if(event.key.code == sf::Keyboard::Left) {
- if(selected_tab > 0) {
- --selected_tab;
- chat_state = ChatState::NAVIGATING;
- }
- } else if(event.key.code == sf::Keyboard::Right) {
- if(selected_tab < (int)tabs.size() - 1) {
- ++selected_tab;
- chat_state = ChatState::NAVIGATING;
- }
} else if(event.key.code == sf::Keyboard::Escape) {
url_selection_body.clear_items();
chat_state = ChatState::NAVIGATING;