aboutsummaryrefslogtreecommitdiff
path: root/src/event.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-09-27 08:27:39 -0700
committerJoe Wilm <joe@jwilm.com>2016-09-27 08:27:39 -0700
commit7e69a070aaf92eff3bea1878bd77821b5ae60ede (patch)
tree3f023c347424abded1175cecfe3843094403c972 /src/event.rs
parent077a058cc428db8b1a9ec13f2a9c49ba500f7ac0 (diff)
downloadalacritty-7e69a070aaf92eff3bea1878bd77821b5ae60ede.tar.gz
alacritty-7e69a070aaf92eff3bea1878bd77821b5ae60ede.zip
Don't write v when pasting on macOS
This is a bit of an experiment to see if simply handling 'v' in the bindings will work or has any bugs not going through ReceivedCharacter. The change is necessary though to prevent 'v' from being written in front of every clipboard paste.
Diffstat (limited to 'src/event.rs')
-rw-r--r--src/event.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/event.rs b/src/event.rs
index 3dbe1e4b..cb99999a 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -42,6 +42,8 @@ impl<N: input::Notify> Processor<N> {
'\u{8}' | '\u{7f}' => (),
// OSX arrow keys send invalid characters; ignore.
'\u{f700}' | '\u{f701}' | '\u{f702}' | '\u{f703}' => (),
+ // These letters are handled in the bindings system
+ 'v' => (),
_ => {
let encoded = c.encode_utf8();
self.notifier.notify(encoded.as_slice().to_vec());