From 43894db0bcd3fb89ea99413fc34af826938ef3c3 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Fri, 17 Aug 2012 09:53:49 +0200 Subject: core: add mouse bindings ctrl+wheel up/down to scroll horizontally buffers with free content --- src/gui/curses/gui-curses-key.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/curses') diff --git a/src/gui/curses/gui-curses-key.c b/src/gui/curses/gui-curses-key.c index 31b91cb27..cf32ff746 100644 --- a/src/gui/curses/gui-curses-key.c +++ b/src/gui/curses/gui-curses-key.c @@ -268,6 +268,8 @@ gui_key_default_bindings (int context) BIND("@chat:wheeldown", "/window scroll_down -window ${_window_number}"); BIND("@chat(script.scripts):wheelup", "/script up 5"); BIND("@chat(script.scripts):wheeldown", "/script down 5"); + BIND("@chat:ctrl-wheelup", "/window scroll_horiz -window ${_window_number} -10%"); + BIND("@chat:ctrl-wheeldown", "/window scroll_horiz -window ${_window_number} +10%"); /* mouse events on nicklist */ BIND("@bar(nicklist):button1-gesture-up", "/bar scroll nicklist ${_window_number} -100%"); BIND("@bar(nicklist):button1-gesture-down", "/bar scroll nicklist ${_window_number} +100%"); -- cgit v1.2.3