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

Shift key locked in when pressed once in Wayland #7273

Open
rakhusur opened this issue Jan 5, 2025 · 0 comments
Open

Shift key locked in when pressed once in Wayland #7273

rakhusur opened this issue Jan 5, 2025 · 0 comments
Labels
bug Something isn't working need triaging Issue that the owner of the area still need to triage

Comments

@rakhusur
Copy link

rakhusur commented Jan 5, 2025

Bug Description

Hi,

I’m experiencing the following bug, which seems similar to #6263 , but occurs under different conditions.

When pressing and releasing the shift key when a slint window is focused, the shift state becomes locked in for the following purposes:
• Turning the scroll wheel scrolls horizontally instead of vertically
• Clicking on a TextInput (or LineEdit or TextEdit) or pressing movement keys when it’s focused causes text to be selected instead of just cursor movement.

Pressing shift again doesn’t help, but focusing a different window does.

It occurs with both the winit and Qt backend as well as in the preview window of the VSCode extension. The issue appears on wayland but not on Xorg.

Reproducible Code (if applicable)

use slint::slint;

slint!{
    export component MainWindow inherits Window {
        TextInput {}
    }
}

fn main() {
    let main_window = MainWindow::new().unwrap();

    main_window.run().unwrap();
}

Environment Details

  • Slint Version: 1.9.1
  • Platform/OS: Gnome (Wayland), Arch Linux
  • Programming Language: Rust
  • Backend/Renderer: Qt, winit

Product Impact

No response

@rakhusur rakhusur added bug Something isn't working need triaging Issue that the owner of the area still need to triage labels Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need triaging Issue that the owner of the area still need to triage
Projects
None yet
Development

No branches or pull requests

1 participant