diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2012-08-20 13:36:29 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2012-08-20 13:36:29 +0200 |
commit | 2944adc954c6dc3267ec8a8ac39334a0dc53b684 (patch) | |
tree | e7a2201c9ebba5d6b3f229fba6ea2117a93d987d /src/gui/curses/gui-curses-key.c | |
parent | 08228492e6a848d54226ef0a9d29368ba561fa29 (diff) | |
download | weechat-2944adc954c6dc3267ec8a8ac39334a0dc53b684.zip |
script: add focus info for mouse on script buffer, add two default mouse bindings: left button = select line, right button = install/remove script
Diffstat (limited to 'src/gui/curses/gui-curses-key.c')
-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 cf32ff746..50a04c4c9 100644 --- a/src/gui/curses/gui-curses-key.c +++ b/src/gui/curses/gui-curses-key.c @@ -260,6 +260,8 @@ gui_key_default_bindings (int context) { /* mouse events on chat area */ BIND("@chat:button1", "/window ${_window_number}"); + BIND("@chat(script.scripts):button1", "/script go ${_chat_line_y}"); + BIND("@chat(script.scripts):button2", "/script go ${_chat_line_y};/script installremove ${script_name_with_extension}"); BIND("@chat:button1-gesture-left", "/window ${_window_number};/buffer -1"); BIND("@chat:button1-gesture-right", "/window ${_window_number};/buffer +1"); BIND("@chat:button1-gesture-left-long", "/window ${_window_number};/buffer 1"); |