Process Mouse Binding Actions Earlier

To allow for a mouse binding to properly copy text, we should process
the mouse binding actions before thee built-in functionality, which will
clear the selection on right click, for example.
This commit is contained in:
Nathan Lilienthal 2019-01-02 16:56:36 -05:00 committed by Christian Duerr
parent 2e968ae0ad
commit 2d9afb9b39
2 changed files with 3 additions and 2 deletions

View file

@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Alt modifier is no longer sent separately from the modified key - Alt modifier is no longer sent separately from the modified key
- Various Windows issues, like color support and performance, through the new ConPTY - Various Windows issues, like color support and performance, through the new ConPTY
- Fixed rendering non default mouse cursors in terminal mouse mode (linux) - Fixed rendering non default mouse cursors in terminal mouse mode (linux)
- Fix the `Copy` `mouse_bindings` action ([#1963](https://github.com/jwilm/alacritty/issues/1963))
## Version 0.2.4 ## Version 0.2.4

View file

@ -646,6 +646,8 @@ impl<'a, A: ActionContext + 'a> Processor<'a, A> {
MouseButton::Other(_) => None, MouseButton::Other(_) => None,
}; };
self.process_mouse_bindings(modifiers, button);
if let Some(prev_state) = prev_state { if let Some(prev_state) = prev_state {
if prev_state != state { if prev_state != state {
match state { match state {
@ -658,8 +660,6 @@ impl<'a, A: ActionContext + 'a> Processor<'a, A> {
if let ElementState::Released = state { if let ElementState::Released = state {
return; return;
} }
self.process_mouse_bindings(modifiers, button);
} }
/// Process key input /// Process key input