-
-
Notifications
You must be signed in to change notification settings - Fork 656
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
Readonly Textinput beeps on focus loss with keyboard on GTK #2554
Comments
Taking a look at this |
Have confirmed that it is not just Tab, but any key except enter triggers the beep. I suspect this is because the |
Quick update to avoid ambiguity: Setting the disable focus property on the textinput widget does still allow you to select and copy text with the mouse, but obviously not with the keyboard and it also skips during focus cycling so that's also not a solution. |
Describe the bug
Under GTK, If a readonly text input loses focus as a result of keyboard input (i.e., pressing tab), a beep is emitted.
Steps to reproduce
A beep will be emitted when the Celsius field loses focus.
Expected behavior
No beep should be emitted.
Screenshots
No response
Environment
Logs
Additional context
No beep is emitted on loss of focus.
It's arguable whether the readonly widget should be able to accept focus at all - that's the behavior on macOS. If this is acceptable, calling
native.set_can_focus()
as part ofset_readonly()
might be a fix for this.There is likely similar issues on any other widget with a clear input focus and a readonly option.
The text was updated successfully, but these errors were encountered: