aboutsummaryrefslogtreecommitdiff
path: root/src/event.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/event.rs')
-rw-r--r--src/event.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/event.rs b/src/event.rs
index 9db0680d..eef04a8c 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -334,9 +334,8 @@ impl<N: Notify> Processor<N> {
processor.ctx.terminal.dirty = true;
},
KeyboardInput { input, .. } => {
- let glutin::KeyboardInput { state, virtual_keycode, modifiers, .. } = input;
- processor.process_key(state, virtual_keycode, modifiers);
- if state == ElementState::Pressed {
+ processor.process_key(input);
+ if input.state == ElementState::Pressed {
// Hide cursor while typing
*hide_cursor = true;
}