-
-
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
Keyboard popup propagates #5555
Comments
Possibly related:
|
It seems to me that #5452 breaks the way modal widgets are supposed to work. The top modal widget is supposed to be the top modal widget. |
PS I forgot to add this above, but this would be one way to get rid of the biggest problem. The thing is, if you hover over some random key outside of the popup it will still activate. Complex workarounds would be possible, but shouldn't be necessary because we've got the top modal dialog in play here. diff --git a/frontend/ui/widget/virtualkeyboard.lua b/frontend/ui/widget/virtualkeyboard.lua
index 3a7d0992..2e48321c 100644
--- a/frontend/ui/widget/virtualkeyboard.lua
+++ b/frontend/ui/widget/virtualkeyboard.lua
@@ -377,6 +377,7 @@ function VirtualKeyPopup:init()
virtual_key.onHoldReleaseKey = function()
virtual_key:onTapSelect(true)
UIManager:close(self)
+ return true
end
virtual_key.onPanReleaseKey = virtual_key.onHoldReleaseKey |
Actually, with the current code and my above issue:
There were 3 stuff done: delete to start of line when long press. And when releasing: one delete that removed the CR, and another delete that removed the last char of previous line. Looks like we may have forgotten some koreader/frontend/ui/widget/virtualkeyboard.lua Lines 243 to 259 in f1f75c5
If I add that return true , one of the 2 delChar is avoided:
If I remove the
Yes, everything works as before when we revert #5452. But it doesn't feel like it needs reverting (and it's quite obscure understanding why it break/solves the issue :). The above findings like some more logical fixes to that issue. |
#5452 breaks modal dialogs and should be reverted. The top-most modal dialog should always take precedence. The problem is that for whatever reason the Evernote plugin apparently doesn't work correctly. It should quite simply behave like the Update check. |
Fixed by #5574. |
Issue
The keyboard popup propagates the event. I'm not sure which change is responsible atm but #5380 is probably the most suspicious at a glance.
https://github.com/koreader/koreader/commits/master/frontend/ui/widget/virtualkeyboard.lua
Steps to reproduce
Hold on a key and let go.
The text was updated successfully, but these errors were encountered: