wimpie3 Well-Known Member Licensed User Longtime User May 7, 2014 #1 It seems that when you press the backspace key on the virtual keyboard rapidly to erase an existing text in a textfield, Activity_KeyPress is raised for no reason at all after about 5 keypresses. This behavior does not exist on previous Android versions. Is there a known workaround?
It seems that when you press the backspace key on the virtual keyboard rapidly to erase an existing text in a textfield, Activity_KeyPress is raised for no reason at all after about 5 keypresses. This behavior does not exist on previous Android versions. Is there a known workaround?
Erel B4X founder Staff member Licensed User Longtime User May 7, 2014 #2 I'm unable to reproduce it. Tried with this code: Code: Copy Sub Activity_Create(FirstTime As Boolean) Dim et As EditText et.Initialize("") Activity.AddView(et, 0, 0, 200dip, 100dip) End Sub Sub Activity_KeyPress (KeyCode As Int) As Boolean Log(KeyCode) Return True End Sub Note that the events are raised from the OS.
I'm unable to reproduce it. Tried with this code: Code: Copy Sub Activity_Create(FirstTime As Boolean) Dim et As EditText et.Initialize("") Activity.AddView(et, 0, 0, 200dip, 100dip) End Sub Sub Activity_KeyPress (KeyCode As Int) As Boolean Log(KeyCode) Return True End Sub Note that the events are raised from the OS.
wimpie3 Well-Known Member Licensed User Longtime User May 7, 2014 #3 I get 67's all over the place in the log window... FYI, I'm running on a Nexus 5 with Android 4.4.2
wimpie3 Well-Known Member Licensed User Longtime User May 7, 2014 #4 But let's agree on the fact that this is most probably not a B4A bug, but something strange in Kitkat that can be handled without any problem in B4A's KeyPress procedure.
But let's agree on the fact that this is most probably not a B4A bug, but something strange in Kitkat that can be handled without any problem in B4A's KeyPress procedure.