B4X FEED possible bug on IME lib (SetLengthFilter)

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: possible bug on IME lib (SetLengthFilter) است. این موضوع تا کنون 34 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع possible bug on IME lib (SetLengthFilter)
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
34
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
Hi. @Erel.

Hello how are you?
I'm trying to create a filter for an edittext and I came across a possible bug.

For example, I want edittext (ed1) to accept only letters (abcde). everything ok so far.
B4X:

ime.SetCustomFilter(ed1, ed1.INPUT_TYPE_TEXT, "abcde")

however I want this edittext to have a 3 character limit, nothing more. example: ABC
B4X:

ime.SetLengthFilter(ed1, 3)

But there is a bug, I don't know if it's on android, on lib or on B4A(ide).

When you open the keyboard to type, if I press any other letter on the keyboard, let's say, press the letter (Z) 5x, nothing is displayed on the screen, but the IME counts as a character, even though it does not appear on the screen.

Example.
I touched the edittext, opened the keyboard, pressed the letter (Z) 5x, nothing was displayed (the SetCustomFilter works ok), there is nothing in the ed1 field, so the letters (abcde) should work, but it doesn't work, the IME counts those previously pressed (Z) letters and does not let...



 

عقب
بالا