summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-curses-key.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-08-20 13:36:29 +0200
committerSebastien Helleu <flashcode@flashtux.org>2012-08-20 13:36:29 +0200
commit2944adc954c6dc3267ec8a8ac39334a0dc53b684 (patch)
treee7a2201c9ebba5d6b3f229fba6ea2117a93d987d /src/gui/curses/gui-curses-key.c
parent08228492e6a848d54226ef0a9d29368ba561fa29 (diff)
downloadweechat-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.c2
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");