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

Improve search box by adding autofocus (Desktop) / ability to clear search when expected #46

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

salixor
Copy link
Contributor

@salixor salixor commented Feb 6, 2022

This PR aims to close #42, #43 and #44 !

What's new ?

  • Clear the search box when the user:
    • sends a sticker
    • presses ESC while focusing the box (Desktop)
    • clicks / presses the X icon which shows up when starting to type
  • Add a parameter to enable autofocusing the search box [Desktop only]
    • hidden on Android/iOS
    • set to off by default

I tried to implement the autofocusing on Android as well. During testing, I found out that even though the field gets focused, the keyboard doesn't show up. This behaviour seems to be intended. I don't have an iOS device on hand to try, but it appears the behaviour is the same, so I didn't implement it on that OS either.

image
image

ImSanae added a commit to ImSanae/StickerPicker that referenced this pull request Apr 13, 2023
ImSanae added a commit to ImSanae/StickerPicker that referenced this pull request Apr 13, 2023
Merge from maunium#46 and maunium#49
added more stickers
ImSanae added a commit to ImSanae/StickerPicker that referenced this pull request Apr 14, 2023
Merge from maunium#46 and maunium#49
added more stickers
ImSanae added a commit to ImSanae/StickerPicker that referenced this pull request Apr 14, 2023
Merge from maunium#46 and maunium#49
added more stickers
ImSanae added a commit to ImSanae/StickerPicker that referenced this pull request Apr 15, 2023
Merge from maunium#46 and maunium#49
added more stickers
This was referenced May 6, 2023
Closed
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.

automatically clear search after sending sticker
1 participant