Skip to content

Switch virtual_keyboard_enabled default to false on hasKeyboard and hasScreenKB#15056

Closed
Frenzie wants to merge 1 commit into
koreader:masterfrom
Frenzie:vk-default
Closed

Switch virtual_keyboard_enabled default to false on hasKeyboard and hasScreenKB#15056
Frenzie wants to merge 1 commit into
koreader:masterfrom
Frenzie:vk-default

Conversation

@Frenzie

@Frenzie Frenzie commented Mar 1, 2026

Copy link
Copy Markdown
Member

Without this change we can't do a release, as requested by @poire-z in #15051 (comment).

@Commodore64user Please check this carefully as well. :-)


This change is Reviewable

@Frenzie Frenzie added this to the 2026.02 milestone Mar 1, 2026

@Commodore64user Commodore64user left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this is still not quite enough though

help_text = _("Enable this setting to always display the virtual keyboard within a text input field. When a field is selected (in focus), you can temporarily toggle the keyboard on/off by pressing 'Shift' (or 'ScreenKB') + 'Home'."),
checked_func = function()
return G_reader_settings:nilOrTrue("virtual_keyboard_enabled")
return G_reader_settings:isTrue("virtual_keyboard_enabled")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm afraid this value is never actually set to True, is only ever nil or false

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

the flip below this should also change

self.deny_keyboard_hiding = true
end
if (Device:hasKeyboard() or Device:hasScreenKB()) and G_reader_settings:isFalse("virtual_keyboard_enabled") then
if (Device:hasKeyboard() or Device:hasScreenKB()) and G_reader_settings:nilOrFalse("virtual_keyboard_enabled") then

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

there are also other stops just like this one... in other files

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

They all already say that.

keep_menu_open = true,
enabled_func = function()
return G_reader_settings:nilOrTrue("virtual_keyboard_enabled")
return not (Device:hasKeyboard() or Device:hasScreenKB()) and G_reader_settings:nilOrTrue("virtual_keyboard_enabled") or false

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

So, this menu won't be enabled on the emulator?
We can't style the Shift+Home VK ? We can't even test the VK when developping ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I won't make a release with the behavior in the condition it is now. It either needs to be reverted to a working condition or fixed up to a working condition.

@Frenzie

Frenzie commented Mar 1, 2026

Copy link
Copy Markdown
Member Author

Forget it, I don't want to make this change in the first place.

@Frenzie Frenzie closed this Mar 1, 2026
@Frenzie Frenzie deleted the vk-default branch March 1, 2026 17:36
@Commodore64user

Copy link
Copy Markdown
Member

You could migrate every one to false...

Why don't you want to change the default?

@Frenzie

Frenzie commented Mar 1, 2026

Copy link
Copy Markdown
Member Author

To be precise I'm not the least bit motivated to personally spend time on that specifically, at least today. I don't know why really.

@Commodore64user

Commodore64user commented Mar 1, 2026

Copy link
Copy Markdown
Member

Do you want me to switch the default though? Mind you hasScreenKB should not default to false

@Frenzie

Frenzie commented Mar 1, 2026

Copy link
Copy Markdown
Member Author

In principle hasKeyboard should default to not showing, since why would a desktop app do that, while isEmulator should default to showing. Chances are I'll recover my motivation tomorrow or the day after, but if you wish to do it sooner that'd be cool. :-)

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.

3 participants