diff options
author | Joe Wilm <joe@jwilm.com> | 2016-08-03 08:20:33 -0700 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-08-03 08:21:30 -0700 |
commit | 16ed2ddfe9a40fb6f069c018aa9ea76dfb4a8b9b (patch) | |
tree | f6345de3791945175f7146c300be34385214e196 /src | |
parent | 8b34df7c024d07de03c4b13cad7af333312e63be (diff) | |
download | alacritty-16ed2ddfe9a40fb6f069c018aa9ea76dfb4a8b9b.tar.gz alacritty-16ed2ddfe9a40fb6f069c018aa9ea76dfb4a8b9b.zip |
Fix arrow keys on macOS
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 2f07ab76..af4cc312 100644 --- a/src/main.rs +++ b/src/main.rs @@ -233,6 +233,8 @@ fn main() { match c { // Ignore BACKSPACE and DEL. These are handled specially. '\u{8}' | '\u{7f}' => (), + // OSX arrow keys send invalid characters; ignore. + '\u{f700}' | '\u{f701}' | '\u{f702}' | '\u{f703}' => (), _ => { let encoded = c.encode_utf8(); writer.write(encoded.as_slice()).unwrap(); |