Return / Enter not detected on SOME phones
Posted: Tue Jul 19, 2016 5:29 am
I recently released a puzzle app on the Google Play Store in New Zealand (my home country) only. To-date I have about 30 downloads.
Two of these 30 dowloads (that I know of) are experiencing a problem with the Return/Enter key not ever being recognised at the end of a data input field. One was a Sony Xperia Android 6.0 phone, and the other was a budget model Samsung running Android 4.0. Very different devices.
I cannot reproduce this problem on either the Android simulator or my two test devices. Additionally, I had 8 beta-testers, and none of them encountered the same problem. On MOST phones it seems to work without any problem.
Any advice on either
- what I've got wrong in my code (shown below); or
- how I can go about identifying the cause of the problem (I don't really want to have to buy budget Samsung phones until I find one that has the same problem)
would be much appreciated.
Thanks in advance
Kim
================================================================================
// Code associated with field EDITUSERNAME
// On the problem phones - the CheckUsername and SaveOnThis Device buttons do not appear after the user presses the Return / Enter button on his phone's keyboard. I've had users test this after entering "test1234" - which should have been a valid entry.
On OpenField
Select after text of field "EditUsername"
Set the visible of button "CheckUsername" to false
Set the visible of button "SaveOnThisDevice" to false
end OpenField
Local kdKey
on keyDown kdKey
if (kdKey is among the characters of "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_") and (the length of me <= 16) then pass keyDown
end keyDown
On returnInField
If (the length of field "EditUsername" >= 6) and (the length of field "EditUsername" <= 16) then
Focus on nothing
Set the visible of button "CheckUsername" to true
Set the visible of button "SaveOnThisDevice" to true
Else
Select after text of field "EditUsername"
End if
end returnInField
On enterInField
If (the length of field "EditUsername" >= 6) and (the length of field "EditUsername" <= 16) then
Focus on nothing
Set the visible of button "CheckUsername" to true
Set the visible of button "SaveOnThisDevice" to true
Else
Select after text of field "EditUsername"
End if
end enterInField
Two of these 30 dowloads (that I know of) are experiencing a problem with the Return/Enter key not ever being recognised at the end of a data input field. One was a Sony Xperia Android 6.0 phone, and the other was a budget model Samsung running Android 4.0. Very different devices.
I cannot reproduce this problem on either the Android simulator or my two test devices. Additionally, I had 8 beta-testers, and none of them encountered the same problem. On MOST phones it seems to work without any problem.
Any advice on either
- what I've got wrong in my code (shown below); or
- how I can go about identifying the cause of the problem (I don't really want to have to buy budget Samsung phones until I find one that has the same problem)
would be much appreciated.
Thanks in advance
Kim
================================================================================
// Code associated with field EDITUSERNAME
// On the problem phones - the CheckUsername and SaveOnThis Device buttons do not appear after the user presses the Return / Enter button on his phone's keyboard. I've had users test this after entering "test1234" - which should have been a valid entry.
On OpenField
Select after text of field "EditUsername"
Set the visible of button "CheckUsername" to false
Set the visible of button "SaveOnThisDevice" to false
end OpenField
Local kdKey
on keyDown kdKey
if (kdKey is among the characters of "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_") and (the length of me <= 16) then pass keyDown
end keyDown
On returnInField
If (the length of field "EditUsername" >= 6) and (the length of field "EditUsername" <= 16) then
Focus on nothing
Set the visible of button "CheckUsername" to true
Set the visible of button "SaveOnThisDevice" to true
Else
Select after text of field "EditUsername"
End if
end returnInField
On enterInField
If (the length of field "EditUsername" >= 6) and (the length of field "EditUsername" <= 16) then
Focus on nothing
Set the visible of button "CheckUsername" to true
Set the visible of button "SaveOnThisDevice" to true
Else
Select after text of field "EditUsername"
End if
end enterInField