jquery/jquery-mobile — Issue #2834: Problem searching list with Hebrew/Arabic filter
Author: odedbd
Created: 2011-10-25 16:28:50+00:00
State: open

Hello all,

I have an issue with using the search/filter feature of a list on my Galaxy S, no fiddle/bin necessary, as the problem may be reproduced with the official docs page - http://jquerymobile.com/demos/1.0rc2/docs/lists/lists-search.html

Just try typing in Hebrew or Arabic (And most likely other languages which are not English, I only tested these), and the filtering will not take place after each key press, but rather only after you type some symbol such as a period, a comma or a spacebar. I assume that the distinction here might be between symbols which are or are not part of the basic ASCII keys.

I debugged this a little, and it seems that typing simply doesn't trigger the keydown/up events for these languages. I don't know if the problem lies in the triggering of the events, or in the binding, but the end result is as I described. The problem is not specific to JQM, and was present in all previous versions I tested (alpha3 onward), but it critically impacts this feature of the framework, so I thought it appropriate to submit the issue here.

I can think of ways to bypass this using a watchdog mechanism (with timeout), but a cleaner solution would be better, if one can be had.

Thanks,
o