diff options
author | Tuomas Siipola <siiptuo@kapsi.fi> | 2017-02-23 00:27:18 +0200 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-02-22 14:49:29 -0800 |
commit | 604cc6b25ebbd906b9a132ffc31c16993e553f84 (patch) | |
tree | f2626c0ae9870dfc29bb7bde72d8fcf58f985ffe /src/event.rs | |
parent | 2d89f79a297bf8439db9cf0c2853925eb5aa04ae (diff) | |
download | alacritty-604cc6b25ebbd906b9a132ffc31c16993e553f84.tar.gz alacritty-604cc6b25ebbd906b9a132ffc31c16993e553f84.zip |
Document hide cursor when typing behaviour
Diffstat (limited to 'src/event.rs')
-rw-r--r-- | src/event.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/event.rs b/src/event.rs index c385e289..32b0e9d6 100644 --- a/src/event.rs +++ b/src/event.rs @@ -224,6 +224,8 @@ impl<N: Notify> Processor<N> { processor.ctx.terminal.dirty = true; }, glutin::Event::KeyboardInput(state, _code, key, mods, string) => { + // Ensure that key event originates from our window. For example using a shortcut + // to switch windows could generate a release key event. if state == ElementState::Pressed { *hide_cursor = true; } |