-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
Fix ColorPicker
virtual keyboard popup on mobile
#97807
Conversation
c912f00
to
6f795f8
Compare
It looks good but I don't know if we should return from |
@WhalesState Isn't this the current behaviour, virtual keyboard does not appear if physical keyboard is connected. |
There was no way to check for physical keyboards before, it was recently merged so it always show the virtual keyboard on android and ios by default. |
That's why i have applied a hack for this, since focusing any |
No, virtual keyboard doesn't appear if physical kb is connected even before that PR . This was used internally just wasn't exposed. |
There's an option on android |
I just checked in two different devices and it was turned off in Motorola and turned on in Xiaomi, both are default. But that is out of scope of this PR. |
ColorPicker
virtual keyboard popup on mobile
953c625
to
abbf90a
Compare
abbf90a
to
8f9ed35
Compare
The linked issue was closed by another PR. Is this still relevant? |
Yes, this fix is simpler and IMO better. @KoBeWi It would be great if you could have a look at changes 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This basically reverts the ColorPicker part of #97094 idk why that code was merged if the author of that PR has approved this one 🤷♂️
The code looks ok, but I didn't test it on mobile.
I've approved this PR since it was submitted after my own fix and my PR was approved but not merged yet. However, I do have some questions about the approach taken here. I'm not sure why this fix was submitted as a separate PR instead of being discussed in my original PR, where the issue was already being tracked and addressed. Regarding the fix itself, I agree that it's simpler. However, I do have some concerns about its accuracy. Specifically, every popup should focus on at least one control. Also to avoid potential regressions on other platforms when I'm not familiar enough with the underlying mechanics to provide a definitive opinion on which fix is better. I'd be happy to let more experienced team members weigh in and provide guidance on the best approach. |
That PR was already addressing multiple issues, so I thought it would be better to open a new one. ( I accept that was an error an my part)
If hardware keyboard is not connected, this fix won't even create a popup or automatically try to open virtual keyboard (when colorpicker button is pressed).
This fix won't affect any other platform because has_hardware_keyboard() will always return true on any other platform. And if this func gets supported on other platforms then it should work there too. I hope all your questions are answered :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code and the reasoning looks good to me!
Thanks! |
This PR fixes auto popup of virtual keyboard when colorPickerButton is pressed on mobile devices.
Fixes #88235