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

linux: wayland: The Shift key does not work #210

Open
pentamassiv opened this issue Sep 18, 2023 · 1 comment
Open

linux: wayland: The Shift key does not work #210

pentamassiv opened this issue Sep 18, 2023 · 1 comment

Comments

@pentamassiv
Copy link
Collaborator

pentamassiv commented Sep 18, 2023

Describe the bug
Entering keys such as Key::Shift does not work.

To Reproduce
Run the following code:

use enigo::{Enigo, Key, KeyboardControllable};
use std::thread;
use std::time::Duration;

fn main() {
    thread::sleep(Duration::from_secs(2));
    let mut enigo = Enigo::new();

    // write text
    enigo.key_sequence("Hello World! here is a lot of text  ❤️");

    enigo.key_down(Key::Shift);
    enigo.key_click(Key::Layout('a'));
    enigo.key_up(Key::Shift);
}

with the feature wayland enabled.

Expected behavior
The text should get entered, followed by an 'A'.

Environment (please complete the following information):

  • OS: Linux
  • Library Version: commit e7fa6df
@pentamassiv pentamassiv changed the title linux: wayland: The Control key does not work linux: wayland: The Shift key does not work Oct 1, 2023
@pentamassiv
Copy link
Collaborator Author

I suspect this is because of the keymap we provide. Shift probably is entered but the keymap has the same keycode for both layers.

@pentamassiv pentamassiv added the Linux Linux spedific label Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant