aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2019-01-03 20:28:31 +0100
committerChristian Duerr <chrisduerr@users.noreply.github.com>2019-01-05 20:49:39 +0000
commitdd8639b6cc5d635d2826a05b7449c2a10d4af4c3 (patch)
tree065b00fef55f9dcfeb8b04db1b54743f0c9916a7
parente4dc43e87c5330c1f22dc2e7570d7e66881ef647 (diff)
downloadalacritty-dd8639b6cc5d635d2826a05b7449c2a10d4af4c3.tar.gz
alacritty-dd8639b6cc5d635d2826a05b7449c2a10d4af4c3.zip
Launch URLs only when left-clicking
This fixes #1903.
-rw-r--r--CHANGELOG.md1
-rw-r--r--src/input.rs2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5c724939..25175656 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Various Windows issues, like color support and performance, through the new ConPTY
- 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))
+- URLs are only launched when left-clicking
## Version 0.2.4
diff --git a/src/input.rs b/src/input.rs
index 2e949d64..8b3bcbed 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -520,7 +520,7 @@ impl<'a, A: ActionContext + 'a> Processor<'a, A> {
MouseButton::Other(_) => (),
};
return;
- } else {
+ } else if button == MouseButton::Left {
self.launch_url(modifiers);
}