Make middle mouse event be processed by neovim itself (#14)
This commit is contained in:
parent
ab85f5a90a
commit
4068fc5a43
@ -643,10 +643,7 @@ fn gtk_button_press(shell: &mut State, ui_state: &mut UiState, ev: &EventButton)
|
|||||||
|
|
||||||
match ev.get_button() {
|
match ev.get_button() {
|
||||||
1 => mouse_input(shell, "LeftMouse", ev.get_state(), ev.get_position()),
|
1 => mouse_input(shell, "LeftMouse", ev.get_state(), ev.get_position()),
|
||||||
2 => {
|
2 => mouse_input(shell, "MiddleMouse", ev.get_state(), ev.get_position()),
|
||||||
mouse_input(shell, "LeftMouse", ev.get_state(), ev.get_position());
|
|
||||||
shell.edit_paste("*");
|
|
||||||
}
|
|
||||||
3 => mouse_input(shell, "RightMouse", ev.get_state(), ev.get_position()),
|
3 => mouse_input(shell, "RightMouse", ev.get_state(), ev.get_position()),
|
||||||
_ => (),
|
_ => (),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user