diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-09-09 20:37:01 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-09-09 20:37:01 +0200 |
commit | 541180dd46c53f8d80273a92543f2d217a36bf81 (patch) | |
tree | a728905e975b33cb8f118ebbf0fdbbfb27906a89 /src | |
parent | 9c5cd0ebb51350c05d3fc3496851f43a209f84ec (diff) |
More vim key shit
Diffstat (limited to 'src')
-rw-r--r-- | src/QuickMedia.cpp | 4 | ||||
-rw-r--r-- | src/Tabs.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
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) { |