Skip to content

add menu-key-event to 'Menu widget'#11966

Merged
Frenzie merged 1 commit into
koreader:masterfrom
Commodore64user:Menu-widget
Jun 5, 2024
Merged

add menu-key-event to 'Menu widget'#11966
Frenzie merged 1 commit into
koreader:masterfrom
Commodore64user:Menu-widget

Conversation

@Commodore64user

@Commodore64user Commodore64user commented Jun 3, 2024

Copy link
Copy Markdown
Member

As seen here #11918 (comment)

This change is Reviewable

if Device:hasKeys() then
-- set up keyboard events
self.key_events.Close = { { Input.group.Back } }
self.key_events.LeftButtonTap = { { "Menu" } }

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.

LeftButtonTap becomes a bad name if you add this.

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.

What do you mean by "becomes a bad name"? That is what the existing function is called

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.

It's changing the original context in which it was named, making it confusing. Something like WidgetMenuToggle? Pinging @hius07 who wrote it for some thoughts.

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.

If it works, I think it's okay.

@Frenzie Frenzie added this to the 2024.06 milestone Jun 5, 2024
@Frenzie Frenzie merged commit 2d07a82 into koreader:master Jun 5, 2024
@Commodore64user Commodore64user deleted the Menu-widget branch June 5, 2024 08:26
0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
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