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

Keycode::Right not recognized on Windows Git Bash shell #768

Open
lcmgh opened this issue Mar 27, 2023 · 2 comments
Open

Keycode::Right not recognized on Windows Git Bash shell #768

lcmgh opened this issue Mar 27, 2023 · 2 comments

Comments

@lcmgh
Copy link

lcmgh commented Mar 27, 2023

The following Left, Up, Right, Down events are not being recognized on Windows 10 when user launches the app within Git Bash. It works when using Powershell.

if crossterm::event::poll(timeout)? {
    if let Event::Key(key) = event::read()? {
        // info!("Key pressed {:?}", &key.code);
        match key.code {
            KeyCode::Char(c) => app.on_key(c),
            KeyCode::Left => app.on_left(),
            KeyCode::Up => app.on_up(),
            KeyCode::Right => app.on_right(),
            KeyCode::Down => app.on_down(),
            _ => {}
        }
    }
}

Version: crossterm = { version = "0.25" }

@lcmgh
Copy link
Author

lcmgh commented Mar 27, 2023

Update: According to a report of our user, it looks like no key codes are being recognized.

@lcmgh
Copy link
Author

lcmgh commented Oct 18, 2023

Does anyone know what is the root cause in here or in which direction one could investigate?

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

1 participant