Need for help
I want to implement “arabic keyboard input filtering” use onkeyup
and onkeypress
like this.
<input type="text"
name="searchBox"
value=""
placeholder="بحث"
size="25"
onkeypress="if(this.value.match(/[^\u0621-\u063A\u0640-\u0657\u0670\uFE70-\uFEFC]/)) this.value=this.value.replace(/[^\u0621-\u063A\u0640-\u0657\u0670\uFE70-\uFEFC]/g,'')"
onkeyup="if(this.value.match(/[^\u0621-\u063A\u0640-\u0657\u0670\uFE70-\uFEFC]/)) this.value=this.value.replace(/[^\u0621-\u063A\u0640-\u0657\u0670\uFE70-\uFEFC]/g,'')"
style="direction: rtl; width: 150px;">
How to re-implement “arabic keyboard input filtering” in the quasar component q-search
?
Thanks for help