-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
LineEdit Right-Click clearing selection #59808
Comments
Git bisect points to 0ffacff #54353 cc @ConteZero |
When right-clicking a NOTIFICATION_FOCUS_EXIT is received and this code is executed:
This does not happens on master branch, so I don't know if this is a bug on 3.x branch or not. I think that the correct behavior is to NOT send the NOTIFICATION_FOCUS_EXIT when right-clicking, all the program that I've tested do not lose field focus when you right click on it. |
Line 187 in fa9b77d
So receiving a NOTIFICATION_FOCUS_EXIT is not a bug in 3.x. It just works very differently than in 4.0.
If this isn't easily fixable, we should revert 0ffacff. |
I've already tried to comment line 187 on popup.cpp but the the Anyway I've coded a workaround that should avoid the text deselection. |
Fixed by #59827. |
Godot version
3.x (99c07c9)
System information
Ubuntu 21.10
Issue description
In
LineEdit
, when text is selected, you can no longer right-click and cut or copy the selected text, because, when right-clicking, the selection is cleared.This affects 3.5-beta2 and beta3, it works fine in 3.4.4, 3.5-beta1 and master.
Steps to reproduce
In a
LineEdit
, select some text, then try right-click and cut or copy the selected text.Minimal reproduction project
RightClickCut.zip
The text was updated successfully, but these errors were encountered: