aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-09-09 20:37:01 +0200
committerdec05eba <dec05eba@protonmail.com>2022-09-09 20:37:01 +0200
commit541180dd46c53f8d80273a92543f2d217a36bf81 (patch)
treea728905e975b33cb8f118ebbf0fdbbfb27906a89
parent9c5cd0ebb51350c05d3fc3496851f43a209f84ec (diff)
More vim key shit
-rw-r--r--README.md8
-rw-r--r--src/QuickMedia.cpp4
-rw-r--r--src/Tabs.cpp4
3 files changed, 8 insertions, 8 deletions
diff --git a/README.md b/README.md
index ed8ceb0..038585e 100644
--- a/README.md
+++ b/README.md
@@ -52,8 +52,8 @@ Type text and then wait and QuickMedia will automatically search.\
`Arrow down`/`Ctrl+J`: Move down.\
`Left`/`Ctrl+H`: Move left.\
`Right`/`Ctrl+L`: Move right.\
-`Ctrl+Left`/`Ctrl+Alt+H`/`Ctrl+Shift+Tab`: Select the tab to the left.\
-`Ctrl+Right`/`Ctrl+Alt+L`/`Ctrl+Tab`: Select the tab to the right.\
+`Ctrl+Left`/`Ctrl+H`/`Ctrl+Shift+Tab`: Select the tab to the left.\
+`Ctrl+Right`/`Ctrl+L`/`Ctrl+Tab`: Select the tab to the right.\
`Ctrl+1 to 9`: Select the specified tab.\
`Home`: Scroll to the top (the first item).\
`End`: Scroll to the bottom (the last item).\
@@ -117,8 +117,8 @@ Type text and then wait and QuickMedia will automatically search.\
`U`: Bring up the file manager and select a file to upload to the room, `Esc` to cancel.\
`Arrow up`/`K`: Move up.\
`Arrow down`/`J`: Move down.\
-`Alt+Up`/`Ctrl+Alt+K`: Select the room above the currently selected room.\
-`Alt+Down`/`Ctrl+Alt+J`: Select the room below the currently selected room.\
+`Alt+Up`/`Alt+K`: Select the room above the currently selected room.\
+`Alt+Down`/`Alt+J`: Select the room below the currently selected room.\
`Alt+Home`: Select the first room in the room list.\
`Alt+End`: Select the last room in the room list.\
`Ctrl+P`: Pin the selected message.\
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 95938c5..9cacfdd 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -6650,11 +6650,11 @@ namespace QuickMedia {
}
if(event.type == mgl::Event::KeyPressed && event.key.alt && (chat_state == ChatState::NAVIGATING || chat_state == ChatState::URL_SELECTION)) {
- if(event.key.code == mgl::Keyboard::Up || (event.key.control && event.key.code == mgl::Keyboard::K)) {
+ if(event.key.code == mgl::Keyboard::Up || event.key.code == mgl::Keyboard::K) {
matrix_chat_page->rooms_page->body->select_previous_item(true);
move_room = true;
goto chat_page_end;
- } else if(event.key.code == mgl::Keyboard::Down || (event.key.control && event.key.code == mgl::Keyboard::J)) {
+ } else if(event.key.code == mgl::Keyboard::Down || event.key.code == mgl::Keyboard::J)) {
matrix_chat_page->rooms_page->body->select_next_item(true);
move_room = true;
goto chat_page_end;
diff --git a/src/Tabs.cpp b/src/Tabs.cpp
index a5c371a..f3c9ee4 100644
--- a/src/Tabs.cpp
+++ b/src/Tabs.cpp
@@ -70,10 +70,10 @@ namespace QuickMedia {
void Tabs::on_event(mgl::Event &event) {
if(event.type == mgl::Event::KeyPressed && event.key.control && !tabs.empty()) {
- bool move_left = (event.key.code == mgl::Keyboard::Left || (event.key.alt && event.key.code == mgl::Keyboard::H));
+ bool move_left = (event.key.code == mgl::Keyboard::Left || (event.key.control && event.key.code == mgl::Keyboard::H));
move_left |= (event.key.code == mgl::Keyboard::Tab && event.key.shift);
- bool move_right = (event.key.code == mgl::Keyboard::Right || (event.key.alt && event.key.code == mgl::Keyboard::L));
+ bool move_right = (event.key.code == mgl::Keyboard::Right || (event.key.control && event.key.code == mgl::Keyboard::L));
move_right |= (event.key.code == mgl::Keyboard::Tab && !event.key.shift);
if(move_left) {