diff options
author | Joe Wilm <joe@jwilm.com> | 2016-07-30 12:47:22 -0700 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-07-30 12:52:53 -0700 |
commit | 66e7228f41a9fef79fec2cf57d8e9ac92e936855 (patch) | |
tree | 498421f6bc1ebeb06d39c8b901d45ff4c90a1b6b /src/main.rs | |
parent | c687eca3fadef5d64daf5fce5582e0037c45d5b4 (diff) | |
download | alacritty-66e7228f41a9fef79fec2cf57d8e9ac92e936855.tar.gz alacritty-66e7228f41a9fef79fec2cf57d8e9ac92e936855.zip |
Input expects modifier keys from Glutin
This is experimental on a separate branch of Glutin. It's intended to
fix the problem of certain key events not being delivered on alt-tab and
breaking the modifier state tracking.
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index e24ed9f8..2f07ab76 100644 --- a/src/main.rs +++ b/src/main.rs @@ -242,9 +242,10 @@ fn main() { glutin::Event::Resized(w, h) => { new_size = Some((w, h)); }, - glutin::Event::KeyboardInput(state, _code, key) => { + glutin::Event::KeyboardInput(state, _code, key, mods) => { input_processor.process(state, key, + mods, &mut input::WriteNotifier(&mut writer), *terminal.mode()) }, |