diff options
author | Christian Duerr <chrisduerr@users.noreply.github.com> | 2018-11-01 19:35:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-01 19:35:37 +0000 |
commit | 2c37da48b580237ff48f5e841015134dd459b41d (patch) | |
tree | 0dbfc89c525d820d00f1fe6889c7a6f71cc45ede /src/config.rs | |
parent | a7d95540384c0b37e75a4bedb0bff688fee7dcf1 (diff) | |
download | alacritty-2c37da48b580237ff48f5e841015134dd459b41d.tar.gz alacritty-2c37da48b580237ff48f5e841015134dd459b41d.zip |
Fix mouse pasting in mouse mode with shift
It is now possible to paste in mouse mode again by making use of the
`shift` key while pressing the mouse button reserved for PasteSelection.
All mouse bindings are now also matching the modifiers in a relaxed way,
so extra modifiers are ignored.
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/config.rs b/src/config.rs index 9664d5df..ae26f76e 100644 --- a/src/config.rs +++ b/src/config.rs @@ -106,17 +106,6 @@ pub struct Url { pub modifiers: ModifiersState, } -impl Url { - // Make sure that modifiers in the config are always present, - // but ignore surplus modifiers. - pub fn mods_match_relaxed(&self, mods: ModifiersState) -> bool { - !((self.modifiers.shift && !mods.shift) - || (self.modifiers.ctrl && !mods.ctrl) - || (self.modifiers.alt && !mods.alt) - || (self.modifiers.logo && !mods.logo)) - } -} - fn deserialize_modifiers<'a, D>(deserializer: D) -> ::std::result::Result<ModifiersState, D::Error> where D: de::Deserializer<'a> { |