-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[UX] VirtualKeyPopup: close on hold release #4891
Conversation
As suggested by @poire-z.
That's on your Kobo? |
No, on the emulator, after just a |
Lightbulb thought: do you have keyboard flash disabled? |
And if so, does the setDirty from 4c4efca do the trick? function VirtualKeyPopup:onClose()
local dimen = self.dimen
UIManager:close(self)
UIManager:setDirty(self, function()
return "partial", dimen
end)
return true
end |
Usually I have it disabled, but I tried both (with flash enabled, the s is shown on one of the screenshots above).
Nope (just cut and pasted that at the bottom of virtualkeyboard.lua, no change). (Sorry, leaving, can't test much till later this evening.) |
It looks like we (logically, as most widgets do) need to have this to avoid this refresh issue: +function VirtualKeyPopup:onCloseWidget()
+ UIManager:setDirty(nil, function()
+ return "partial", self[1][1].dimen
+ end)
+end (which is called by UIManager when we do Without that, when tapping outside, we get a full screen refresh (not sure what triggers it):
and nothing when pan'releas'ing. With that, when tapping outside, we just get the popup region refreshed:
and the same when pan'releas'ing. It's strange that you don't reproduce it. |
As suggested by @poire-z.
As suggested by @poire-z.