summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathan Lilienthal <nathan@nixpulvis.com>2019-01-02 16:56:36 -0500
committerChristian Duerr <chrisduerr@users.noreply.github.com>2019-01-02 21:56:36 +0000
commit2d9afb9b395ea0cc71432613e0df104aefcf24c1 (patch)
treed4b7c14bab8d38c76a06c72e494fa41ab8a72e8d /src
parent2e968ae0add24519237b24a1ce8ed0d79f13e749 (diff)
downloadalacritty-2d9afb9b395ea0cc71432613e0df104aefcf24c1.tar.gz
alacritty-2d9afb9b395ea0cc71432613e0df104aefcf24c1.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/input.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input.rs b/src/input.rs
index 23ccdd58..a4deed04 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -646,6 +646,8 @@ impl<'a, A: ActionContext + 'a> Processor<'a, A> {
MouseButton::Other(_) => None,
};
+ self.process_mouse_bindings(modifiers, button);
+
if let Some(prev_state) = prev_state {
if prev_state != state {
match state {
@@ -658,8 +660,6 @@ impl<'a, A: ActionContext + 'a> Processor<'a, A> {
if let ElementState::Released = state {
return;
}
-
- self.process_mouse_bindings(modifiers, button);
}
/// Process key input