Skip to content

Close the menu on second click.#5110

Merged
oobabooga merged 18 commits into
oobabooga:devfrom
Touch-Night:main
Jan 4, 2024
Merged

Close the menu on second click.#5110
oobabooga merged 18 commits into
oobabooga:devfrom
Touch-Night:main

Conversation

@Touch-Night
Copy link
Copy Markdown
Contributor

@Touch-Night Touch-Night commented Dec 28, 2023

And make hideMenu() don't focus the text box on devices with touchscreen.
Resolves #5108 #5109

Checklist:

Comment thread js/main.js
@oobabooga oobabooga changed the base branch from main to dev January 4, 2024 16:48
@oobabooga
Copy link
Copy Markdown
Owner

That's a nice improvement, thank you.

@oobabooga oobabooga merged commit 3bb4b05 into oobabooga:dev Jan 4, 2024
@Touch-Night
Copy link
Copy Markdown
Contributor Author

Actually, it's not the best approach. Some devices(desktop) have both touch screen and keyboard(some laptop). But I failed to figure out how to distinguish them by physical keyboard programmatically, as virtual keyboard on mobile device also triggers onKeyDown or addEventListener("keydown",...)

PoetOnTheRun pushed a commit to PoetOnTheRun/text-generation-webui that referenced this pull request Feb 22, 2024
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.

When click the menu button and click anywhere else to close the menu on touch screen, the keyboard pops up, which is super annoying.

2 participants