diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-10-05 18:15:28 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-10-05 18:15:28 +0200 |
commit | b9dd668d90704c0b66300fe8a6f4f41de5c1d2aa (patch) | |
tree | 7c82d653cf0b527fc7833c1e3779bfc83e16c620 /doc/en/weechat_user.en.txt | |
parent | 971e464e860866a80415ecf57857c8eb7d1e75aa (diff) | |
download | weechat-b9dd668d90704c0b66300fe8a6f4f41de5c1d2aa.zip |
core: add modifiers control/alt ("ctrl" and "alt") for mouse events
Diffstat (limited to 'doc/en/weechat_user.en.txt')
-rw-r--r-- | doc/en/weechat_user.en.txt | 69 |
1 files changed, 50 insertions, 19 deletions
diff --git a/doc/en/weechat_user.en.txt b/doc/en/weechat_user.en.txt index b2a3d0f63..22dba7a60 100644 --- a/doc/en/weechat_user.en.txt +++ b/doc/en/weechat_user.en.txt @@ -658,35 +658,66 @@ Many default mouse events are already defined by WeeChat (see You can change or add bindings with the command `/key` using context "mouse" (for syntax, see <<command_weechat_key,command /key>>). -List of events supported: +Event name consists of a modifier (optional), a button/wheel name and a gesture +(optional). Different elements are separated by "-". -[width="80%",cols="3m,4",options="header"] +List of modifiers: + +[width="50%",cols="3m,4",options="header"] |======================================== -| Event | Description -| button1 | click on left button -| button2 | click on right button -| button3 | click on middle button (often click on wheel) -| button4 ... button9 | click on extra buttons -| wheelup | wheel (up) -| wheeldown | wheel (down) -| buttonX-gesture-up ^(1)^ | gesture with distance between 3 and 19 -| buttonX-gesture-up-long ^(1)^ | gesture with distance greater than or equal to 20 -| buttonX-gesture-down ^(1)^ | gesture with distance between 3 and 19 -| buttonX-gesture-down-long ^(1)^ | gesture with distance greater than or equal to 20 -| buttonX-gesture-left ^(1)^ | gesture with distance between 3 and 39 -| buttonX-gesture-left-long ^(1)^ | gesture with distance greater than or equal to 40 -| buttonX-gesture-right ^(1)^ | gesture with distance between 3 and 39 -| buttonX-gesture-right-long ^(1)^ | gesture with distance greater than or equal to 40 +| Modifier | Description +| ctrl | key @k(-C-) +| alt | key @k(-A-) +| ctrl-alt | keys @k(-C-) and @k(-A-) |======================================== -[NOTE] -^(1)^ "X" is number of button used in gesture (1 to 9). +List of buttons/wheel: + +[width="50%",cols="3m,4",options="header"] +|======================================== +| Button/wheel | Description +| button1 | click on left button +| button2 | click on right button +| button3 | click on middle button (often click on wheel) +| button4 ... button9 | click on extra buttons +| wheelup | wheel (up) +| wheeldown | wheel (down) +|======================================== + +List of gestures (only for buttons, not wheel): + +[width="50%",cols="3m,4",options="header"] +|======================================== +| Gesture | Distance +| gesture-up | 3 ... 19 +| gesture-up-long | ≥ 20 +| gesture-down | 3 ... 19 +| gesture-down-long | ≥ 20 +| gesture-left | 3 ... 39 +| gesture-left-long | ≥ 40 +| gesture-right | 3 ... 39 +| gesture-right-long | ≥ 40 +|======================================== + +Example of events: + +* `button1` +* `ctrl-button1` +* `button1-gesture-right` +* `alt-button2-gesture-down-long` +* `wheelup` +* `ctrl-alt-wheeldown` +* ... [TIP] When binding a key in context "mouse", it's possible to match many events using `*` at beginning or end of name, for example `button1-gesture-*` will match any gesture made using left button. +[TIP] +You can find an event name with command `/input grab_mouse` then doing event +with mouse. This will insert event name on command line. + [[command_line]] Command line ~~~~~~~~~~~~ |