Closed GK-774 closed 4 months ago
It seems to be an android/chrome bug: https://stackoverflow.com/questions/17974021/keyup-not-working-on-chrome-on-android
Pressing enter works?
Looks like I see the same behavior. Pressing enter to add the search term adds the term but does not execute the search. I need to press enter by itself in the search box in order for the results to be filtered.
Enter works in the sense that it moves the search term to the area below but no filtering action takes place.
It looks like the android/chrome bug, yes, more android though, because with Firefox on Android behaviour is the same. Is there a browser for Android one could try?
It happens to Firefox too. No search...
In my experience on Android:
However, if you hit enter in the search box after submitting a search term the filtered results appear.
Unfortunately I have no access to an android device for testing.
Please go to https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key and test some normal and special keys and enter.
For basic test I typed only the letter s
in each case.
Firefox on linux laptop
Key "s" pressed [event: keydown]
Key "s" about to be input [event: beforeinput]
Key "s" input [event: input]
Key "s" released [event: keyup]
Android 13 phone using Chrome:
Key "Unidentified" pressed [event: keydown]
Key "s" about to be input [event: beforeinput]
Key "s" input [event: input]
Key "Unidentified" released [event: keyup]
That seems pretty messed up so it would be good if someone else can verify.
I can confirm the results that John got. Firefox on iPad same result as Firefox on linux laptop, DuckDuckGo, Edge and Chrome on LineageOS 20 (Android 13) same result as Android 13 phone using Chrome.
Please test the Enter key also.
Enter
key...
Firefox on Linux:
Key "Enter" pressed [event: keydown]
Key "null" about to be input [event: beforeinput]
Key "null" input [event: input]
Key "Enter" released [event: keyup]
Android 13 phone using Chrome:
Key "Unidentified" pressed [event: keydown]
Key "Unidentified" released [event: keyup]
Key "Enter" pressed [event: keydown]
Key "null" about to be input [event: beforeinput]
Key "null" input [event: input]
Key "Enter" released [event: keyup]
Thanks. Search on type could not work, but pressing enter for search should work with some adjustments.
Above commit disables search on type for Android and improves the Enter-key-handling. Can someone test the devel branch with Android?
I tested on Firefox/Linux and Chrome/Android. Firefox/linux continues to work as expected (no regression)
With Chrome, adding search terms works as expected (no search on type, enter key adds search term and filters the results).
However, when removing a search term with the x
the search results do not update to show no filtering. Furthermore, the removed search term pops back into the search box. Selecting the x
to the right of the search box clears the text.
I can provide a screen shot if that helps.
On desktop, removal continues to work as expected.
x
to the right of the search box uses now the keydown and Enter event. Keyup is disabled for Android.Pleas test again.
I am getting inconsistent results and trying to rule out caching or some kind of user error. I say this because some times removal works as expected (removes search term and updates results) and other times it does not (pops the search term back to the search box and does not update the search results).
I have not figured out a pattern and need to step away from the computer. Hopefully others can look at this otherwise I will try later.
Update: This looks like user error. I am missing the x
and selecting the label in general. I will think others should take a look at this but it is probably working as expected.
I can confirm normal operation on an Laptop (Firefox and Edge), I will test on two Android devices this evening and report back.
Yes, :-) looks good. With Android Phone and Tablet I get the correct filtering action after Enter, clearing it with the „x“ button returns to the view before. I would say, it’s resolved.
myMPD 14.0.3
In the album view (Browse/Album) one can type a search term and the view gets immidiatly filtered as you type and/or one may hit Enter and add the next search term. This works with all desktop browsers I have tried (Firefox, Edge), it works on an Ipad (Firefox, Safari) and iPhone (Safari).
For some reason it does not work on three Android devices (one tablet, two phones) I tried: With Firefox I do not get "search/filter" as you type but get some result when I add a blank at the end. With Chrome there is no search or filter function at all.