Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

umlaut handling #6

Closed
iqualfragile opened this issue Nov 27, 2016 · 2 comments
Closed

umlaut handling #6

iqualfragile opened this issue Nov 27, 2016 · 2 comments

Comments

@iqualfragile
Copy link

after typing an umlaut the next few keystrokes are not accepted.
to reproduce:
setxkbmap de; void; setxbmap en
in voidmap press type the button right of the L into a label, then try to type something else

@spacejam
Copy link
Member

hmmm interesting bug, it appears to be something in the underlying library:

extern crate termion;                                                                                                                                                                          
                                                                                                                                                                                               
use termion::input::TermRead;                                                                                                                                                                  
use std::io::stdin;                                                                                                                                                                            
                                                                                                                                                                                               
fn main() {                                                                                                                                                                                    
    let stdin = stdin();                                                                                                                                                                       
    for c in stdin.events() {                                                                                                                                                                  
        let evt = c.unwrap();                                                                                                                                                                  
                                                                                                                                                                                               
        println!("got event {:?}", evt);                                                                                                                                                       
    }                                                                                                                                                                                          
}

results in similar behavior:

λ cargo run
    Finished debug [unoptimized + debuginfo] target(s) in 0.0 secs
     Running `target/debug/termion_bug`
a
got event Key(Char('a'))
got event Key(Char('\n'))
ö
got event Key(Char('ö'))


got event Unsupported

got event Key(Char('\n'))

@ticki any idea what may be going on with this?

@spacejam
Copy link
Member

This has been fixed upstream! Version 0.2.26, just published on crates.io, includes the fix. Thanks for catching and reporting this, @iqualfragile!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants