aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-06-05 18:49:36 +0200
committerdec05eba <dec05eba@protonmail.com>2021-06-05 18:49:36 +0200
commit184d32c09c50d7aa6a8d555bf5148a468c3d48e1 (patch)
tree27ac94266a94d9e09d35702b89d5a570164d793b /src
parent12dde63ce782f7d658cd4af81563d1344d77f406 (diff)
Fix tab control for vim keys, improve control documentation
Diffstat (limited to 'src')
-rw-r--r--src/Tabs.cpp4
1 files changed, 2 insertions, 2 deletions
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) {