From 541180dd46c53f8d80273a92543f2d217a36bf81 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 9 Sep 2022 20:37:01 +0200 Subject: More vim key shit --- src/QuickMedia.cpp | 4 ++-- src/Tabs.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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) { -- cgit v1.2.3