Skip to content
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

InputDialog: manage hiding the keyboard #7908

Merged
merged 2 commits into from Jun 29, 2021
Merged

InputDialog: manage hiding the keyboard #7908

merged 2 commits into from Jun 29, 2021

Conversation

hius07
Copy link
Member

@hius07 hius07 commented Jun 29, 2021

New property to allow/deny hiding the keyboard with the tap outside of the dialog.
Useful in Text editor Find and Go dialogs (and maybe somewhere else, where hiding the keyboard is undesirable).


This change is Reviewable

@@ -466,7 +467,7 @@ function InputDialog:init()
end

function InputDialog:onTap()
if self.fullscreen or self.add_nav_bar then
if self.deny_keyboard_hiding or self.fullscreen or self.add_nav_bar then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid having to do 3 checks here, you could have in InputDialog:init():

if self.fullscreen or self.add_nav_bar then
    self.deny_keyboard_hiding = true
end

@poire-z poire-z merged commit 6c35e01 into koreader:master Jun 29, 2021
@poire-z poire-z added this to the 2021.07 milestone Jun 29, 2021
@hius07 hius07 deleted the patch-1 branch June 30, 2021 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants