mirror of
https://github.com/tmux/tmux.git
synced 2024-12-25 10:58:48 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
ed598e9fe1
@ -93,6 +93,9 @@ const struct {
|
|||||||
KEYC_MOUSE_STRING(MOUSEDRAG1, MouseDrag1),
|
KEYC_MOUSE_STRING(MOUSEDRAG1, MouseDrag1),
|
||||||
KEYC_MOUSE_STRING(MOUSEDRAG2, MouseDrag2),
|
KEYC_MOUSE_STRING(MOUSEDRAG2, MouseDrag2),
|
||||||
KEYC_MOUSE_STRING(MOUSEDRAG3, MouseDrag3),
|
KEYC_MOUSE_STRING(MOUSEDRAG3, MouseDrag3),
|
||||||
|
KEYC_MOUSE_STRING(MOUSEDRAGEND1, MouseDragEnd1),
|
||||||
|
KEYC_MOUSE_STRING(MOUSEDRAGEND2, MouseDragEnd2),
|
||||||
|
KEYC_MOUSE_STRING(MOUSEDRAGEND3, MouseDragEnd3),
|
||||||
KEYC_MOUSE_STRING(WHEELUP, WheelUp),
|
KEYC_MOUSE_STRING(WHEELUP, WheelUp),
|
||||||
KEYC_MOUSE_STRING(WHEELDOWN, WheelDown),
|
KEYC_MOUSE_STRING(WHEELDOWN, WheelDown),
|
||||||
};
|
};
|
||||||
|
@ -347,7 +347,7 @@ const struct mode_key_entry mode_key_vi_copy[] = {
|
|||||||
{ KEYC_WHEELUP_PANE, 0, MODEKEYCOPY_SCROLLUP },
|
{ KEYC_WHEELUP_PANE, 0, MODEKEYCOPY_SCROLLUP },
|
||||||
{ KEYC_WHEELDOWN_PANE, 0, MODEKEYCOPY_SCROLLDOWN },
|
{ KEYC_WHEELDOWN_PANE, 0, MODEKEYCOPY_SCROLLDOWN },
|
||||||
{ KEYC_MOUSEDRAG1_PANE, 0, MODEKEYCOPY_STARTSELECTION },
|
{ KEYC_MOUSEDRAG1_PANE, 0, MODEKEYCOPY_STARTSELECTION },
|
||||||
{ KEYC_MOUSEUP1_PANE, 0, MODEKEYCOPY_COPYSELECTION },
|
{ KEYC_MOUSEDRAGEND1_PANE, 0, MODEKEYCOPY_COPYSELECTION },
|
||||||
|
|
||||||
{ 0, -1, 0 }
|
{ 0, -1, 0 }
|
||||||
};
|
};
|
||||||
@ -496,7 +496,7 @@ const struct mode_key_entry mode_key_emacs_copy[] = {
|
|||||||
{ KEYC_WHEELUP_PANE, 0, MODEKEYCOPY_SCROLLUP },
|
{ KEYC_WHEELUP_PANE, 0, MODEKEYCOPY_SCROLLUP },
|
||||||
{ KEYC_WHEELDOWN_PANE, 0, MODEKEYCOPY_SCROLLDOWN },
|
{ KEYC_WHEELDOWN_PANE, 0, MODEKEYCOPY_SCROLLDOWN },
|
||||||
{ KEYC_MOUSEDRAG1_PANE, 0, MODEKEYCOPY_STARTSELECTION },
|
{ KEYC_MOUSEDRAG1_PANE, 0, MODEKEYCOPY_STARTSELECTION },
|
||||||
{ KEYC_MOUSEUP1_PANE, 0, MODEKEYCOPY_COPYSELECTION },
|
{ KEYC_MOUSEDRAGEND1_PANE, 0, MODEKEYCOPY_COPYSELECTION },
|
||||||
|
|
||||||
{ 0, -1, 0 }
|
{ 0, -1, 0 }
|
||||||
};
|
};
|
||||||
|
@ -383,33 +383,33 @@ server_client_check_mouse(struct client *c)
|
|||||||
c->tty.mouse_drag_release = NULL;
|
c->tty.mouse_drag_release = NULL;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* End a mouse drag by passing a MouseUp key corresponding to
|
* End a mouse drag by passing a MouseDragEnd key corresponding
|
||||||
* the button that started the drag.
|
* to the button that started the drag.
|
||||||
*/
|
*/
|
||||||
switch (c->tty.mouse_drag_flag) {
|
switch (c->tty.mouse_drag_flag) {
|
||||||
case 1:
|
case 1:
|
||||||
if (where == PANE)
|
if (where == PANE)
|
||||||
key = KEYC_MOUSEUP1_PANE;
|
key = KEYC_MOUSEDRAGEND1_PANE;
|
||||||
if (where == STATUS)
|
if (where == STATUS)
|
||||||
key = KEYC_MOUSEUP1_STATUS;
|
key = KEYC_MOUSEDRAGEND1_STATUS;
|
||||||
if (where == BORDER)
|
if (where == BORDER)
|
||||||
key = KEYC_MOUSEUP1_BORDER;
|
key = KEYC_MOUSEDRAGEND1_BORDER;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
if (where == PANE)
|
if (where == PANE)
|
||||||
key = KEYC_MOUSEUP2_PANE;
|
key = KEYC_MOUSEDRAGEND2_PANE;
|
||||||
if (where == STATUS)
|
if (where == STATUS)
|
||||||
key = KEYC_MOUSEUP2_STATUS;
|
key = KEYC_MOUSEDRAGEND2_STATUS;
|
||||||
if (where == BORDER)
|
if (where == BORDER)
|
||||||
key = KEYC_MOUSEUP2_BORDER;
|
key = KEYC_MOUSEDRAGEND2_BORDER;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
if (where == PANE)
|
if (where == PANE)
|
||||||
key = KEYC_MOUSEUP3_PANE;
|
key = KEYC_MOUSEDRAGEND3_PANE;
|
||||||
if (where == STATUS)
|
if (where == STATUS)
|
||||||
key = KEYC_MOUSEUP3_STATUS;
|
key = KEYC_MOUSEDRAGEND3_STATUS;
|
||||||
if (where == BORDER)
|
if (where == BORDER)
|
||||||
key = KEYC_MOUSEUP3_BORDER;
|
key = KEYC_MOUSEDRAGEND3_BORDER;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
key = KEYC_MOUSE;
|
key = KEYC_MOUSE;
|
||||||
|
8
tmux.1
8
tmux.1
@ -3298,10 +3298,10 @@ for a pane border or
|
|||||||
for the status line).
|
for the status line).
|
||||||
The following mouse events are available:
|
The following mouse events are available:
|
||||||
.Bl -column "MouseDown1" "MouseDrag1" "WheelDown" -offset indent
|
.Bl -column "MouseDown1" "MouseDrag1" "WheelDown" -offset indent
|
||||||
.It Li "MouseDown1" Ta "MouseUp1" Ta "MouseDrag1"
|
.It Li "MouseDown1" Ta "MouseUp1" Ta "MouseDrag1" Ta "MouseDragEnd1"
|
||||||
.It Li "MouseDown2" Ta "MouseUp2" Ta "MouseDrag2"
|
.It Li "MouseDown2" Ta "MouseUp2" Ta "MouseDrag2" Ta "MouseDragEnd2"
|
||||||
.It Li "MouseDown3" Ta "MouseUp3" Ta "MouseDrag3"
|
.It Li "MouseDown3" Ta "MouseUp3" Ta "MouseDrag3" Ta "MouseDragEnd3"
|
||||||
.It Li "WheelUp" Ta "WheelDown" Ta ""
|
.It Li "WheelUp" Ta "WheelDown" Ta "" Ta ""
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
Each should be suffixed with a location, for example
|
Each should be suffixed with a location, for example
|
||||||
|
3
tmux.h
3
tmux.h
@ -137,6 +137,9 @@ enum {
|
|||||||
KEYC_MOUSE_KEY(MOUSEDRAG1),
|
KEYC_MOUSE_KEY(MOUSEDRAG1),
|
||||||
KEYC_MOUSE_KEY(MOUSEDRAG2),
|
KEYC_MOUSE_KEY(MOUSEDRAG2),
|
||||||
KEYC_MOUSE_KEY(MOUSEDRAG3),
|
KEYC_MOUSE_KEY(MOUSEDRAG3),
|
||||||
|
KEYC_MOUSE_KEY(MOUSEDRAGEND1),
|
||||||
|
KEYC_MOUSE_KEY(MOUSEDRAGEND2),
|
||||||
|
KEYC_MOUSE_KEY(MOUSEDRAGEND3),
|
||||||
KEYC_MOUSE_KEY(WHEELUP),
|
KEYC_MOUSE_KEY(WHEELUP),
|
||||||
KEYC_MOUSE_KEY(WHEELDOWN),
|
KEYC_MOUSE_KEY(WHEELDOWN),
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user