summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2015-09-27 03:58:59 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2015-09-27 04:00:03 +0200
commitd96a6f0b65dcfa7df9705e62e986c9bc110f8c25 (patch)
treedf0a13722084fc2d9b07cb4f021ddff89174152f /src
parent6ad3de7366f3854442cce108c964f93c01011531 (diff)
bindings: add bindings for shift-up/down (select and scroll)
Diffstat (limited to 'src')
-rw-r--r--src/bindings.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bindings.cpp b/src/bindings.cpp
index 4f3a88e0..afa3184c 100644
--- a/src/bindings.cpp
+++ b/src/bindings.cpp
@@ -471,8 +471,12 @@ void BindingsConfiguration::generateDefaults()
bind(k, Actions::Type::MouseEvent);
if (notBound(k = stringToKey("up")))
bind(k, Actions::Type::ScrollUp);
+ if (notBound(k = stringToKey("shift-up")))
+ bind(k, Binding::ActionChain({ &Actions::get(Actions::Type::SelectItem), &Actions::get(Actions::Type::ScrollUp) }));
if (notBound(k = stringToKey("down")))
bind(k, Actions::Type::ScrollDown);
+ if (notBound(k = stringToKey("shift-down")))
+ bind(k, Binding::ActionChain({ &Actions::get(Actions::Type::SelectItem), &Actions::get(Actions::Type::ScrollDown) }));
if (notBound(k = stringToKey("[")))
bind(k, Actions::Type::ScrollUpAlbum);
if (notBound(k = stringToKey("]")))