summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTuomas Siipola <siiptuo@kapsi.fi>2017-02-23 00:27:18 +0200
committerJoe Wilm <jwilm@users.noreply.github.com>2017-02-22 14:49:29 -0800
commit604cc6b25ebbd906b9a132ffc31c16993e553f84 (patch)
treef2626c0ae9870dfc29bb7bde72d8fcf58f985ffe /src
parent2d89f79a297bf8439db9cf0c2853925eb5aa04ae (diff)
Document hide cursor when typing behaviour
Diffstat (limited to 'src')
-rw-r--r--src/event.rs2
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;
}