From 184d32c09c50d7aa6a8d555bf5148a468c3d48e1 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 5 Jun 2021 18:49:36 +0200 Subject: Fix tab control for vim keys, improve control documentation --- src/Tabs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Tabs.cpp b/src/Tabs.cpp index 6b8d948..35eccf5 100644 --- a/src/Tabs.cpp +++ b/src/Tabs.cpp @@ -62,10 +62,10 @@ namespace QuickMedia { void Tabs::on_event(sf::Event &event) { if(event.type == sf::Event::KeyPressed && event.key.control && !tabs.empty()) { - bool move_left = (event.key.code == sf::Keyboard::Left || event.key.code == sf::Keyboard::H); + bool move_left = (event.key.code == sf::Keyboard::Left || (event.key.alt && event.key.code == sf::Keyboard::H)); move_left |= (event.key.code == sf::Keyboard::Tab && event.key.shift); - bool move_right = (event.key.code == sf::Keyboard::Right || event.key.code == sf::Keyboard::L); + bool move_right = (event.key.code == sf::Keyboard::Right || (event.key.alt && event.key.code == sf::Keyboard::L)); move_right |= (event.key.code == sf::Keyboard::Tab && !event.key.shift); if(move_left) { -- cgit v1.2.3