diff options
author | Christian Duerr <contact@christianduerr.com> | 2019-01-03 20:28:31 +0100 |
---|---|---|
committer | Christian Duerr <chrisduerr@users.noreply.github.com> | 2019-01-05 20:49:39 +0000 |
commit | dd8639b6cc5d635d2826a05b7449c2a10d4af4c3 (patch) | |
tree | 065b00fef55f9dcfeb8b04db1b54743f0c9916a7 | |
parent | e4dc43e87c5330c1f22dc2e7570d7e66881ef647 (diff) | |
download | alacritty-dd8639b6cc5d635d2826a05b7449c2a10d4af4c3.tar.gz alacritty-dd8639b6cc5d635d2826a05b7449c2a10d4af4c3.zip |
Launch URLs only when left-clicking
This fixes #1903.
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | src/input.rs | 2 |
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); } |