diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2012-08-17 09:53:49 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2012-08-17 09:53:49 +0200 |
commit | 43894db0bcd3fb89ea99413fc34af826938ef3c3 (patch) | |
tree | bd304d8b463aeb2c1014db37e8756aa8af49ac0d /src/gui/curses | |
parent | 399a5af6f396687e12f07e9aba683d37c1e66ddb (diff) | |
download | weechat-43894db0bcd3fb89ea99413fc34af826938ef3c3.zip |
core: add mouse bindings ctrl+wheel up/down to scroll horizontally buffers with free content
Diffstat (limited to 'src/gui/curses')
-rw-r--r-- | src/gui/curses/gui-curses-key.c | 2 |
1 files changed, 2 insertions, 0 deletions
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%"); |