diff options
author | Joe Wilm <joe@jwilm.com> | 2016-11-11 18:46:42 -0800 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-11-11 18:46:42 -0800 |
commit | 6925daa823a86aa8d3fafe21591bb883cb053ef3 (patch) | |
tree | af34f9d4d10463a5af74ade7acc022ef53e6ced0 /src/event.rs | |
parent | e4260134aa6bdb436373fdecfbde1e9262d15bc2 (diff) | |
download | alacritty-6925daa823a86aa8d3fafe21591bb883cb053ef3.tar.gz alacritty-6925daa823a86aa8d3fafe21591bb883cb053ef3.zip |
Fix/add some keybindings
Adds support for pageup, pagedown, home, and end. Fixes delete inserting
spaces.
Resolves #15.
Diffstat (limited to 'src/event.rs')
-rw-r--r-- | src/event.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/event.rs b/src/event.rs index dcaedc97..6e28f289 100644 --- a/src/event.rs +++ b/src/event.rs @@ -41,11 +41,19 @@ impl<N: input::Notify> Processor<N> { match c { // Ignore BACKSPACE and DEL. These are handled specially. '\u{8}' | '\u{7f}' => (), + // Extra thing on macOS delete? + '\u{f728}' => (), // OSX arrow keys send invalid characters; ignore. '\u{f700}' | '\u{f701}' | '\u{f702}' | '\u{f703}' => (), + // Same with home/end. Am I missing something? Would be + // nice if glutin provided the received char in + // KeyboardInput event so a choice could be made there + // instead of having to special case everything. + '\u{f72b}' | '\u{f729}' | '\u{f72c}' | '\u{f72d}' => (), // These letters are handled in the bindings system 'v' => (), _ => { + println!("printing char {:?}", c); let buf = encode_char(c); self.notifier.notify(buf); } |