flex-Android-Material-Skins icon indicating copy to clipboard operation
flex-Android-Material-Skins copied to clipboard

ScrollingStageTextInputSkin softkeyboard problem on focus

Open leossmith opened this issue 9 years ago • 7 comments

So I had a strange issue, not sure if this is a problem of AIR or of the (awesome) skins. I have a screen with couple of textinputs using number softkeyboard. When I click on any of them, the keyboard works great, but when the app is focused on textinput1 and i click on textinput2 then a default keyboard appears. If i focus out and then click, everything works perfectly.

I am testing on Android 6.0.1

leossmith avatar Sep 23 '16 15:09 leossmith

i will check it out in a few days.

quick6black avatar Sep 25 '16 00:09 quick6black

I was not able to replicate what you are experiencing, I tested on a Droid Maxx with 5.1 and a One Plus One with 6.0.1 with Air 21, Flex 4.15

On thing i noticed on the Droid Maxx was when you focus the textinput the correct numbers keyboard shows up, when you click away the default keyboard popups and then disappears. The One Plus One uses an aftermarket keyboard and there were no quirky issues.

Can you post some code and Flex/Air version?

quick6black avatar Sep 26 '16 20:09 quick6black

Hi there,

so here we go:

        <s:TextInput id="t3" width="45%"  prompt="Stardust" textAlign="center" softKeyboardType="number" restrict="0-9"  maxChars="5" returnKeyLabel="next"/>

        <s:Spacer width="3%"/>
        <s:TextInput id="t1" prompt="HP" width="27%" textAlign="center" softKeyboardType="number" restrict="0-9" maxChars="3" returnKeyLabel="done"/>

This are two text inputs next to each other. Here is a video of first focusing on t3 and then when clicking on t1 you can see the strange behavior. If i click outside the text inputs and then on a text input, i don't see any problems.

https://dl.dropboxusercontent.com/u/70763217/2016_09_27_01_37_53.mp4

leossmith avatar Sep 26 '16 23:09 leossmith

i figured out what is happening, it looks like the text input box that is having the issue is disabled. When i tested a disabled text input box the default keyboard shows up instead of the one specified. I will work on a fix

quick6black avatar Sep 28 '16 16:09 quick6black

Thanks for figuring out what is wrong. Also thank you for the awesome skins. We have a new flex app with about 550k users, and they just love the interface.

On Wed, Sep 28, 2016, 7:28 PM Aaron Nash [email protected] wrote:

i figured out what is happening, it looks like the text input box that is having the issue is disabled. When i tested a disabled text input box the default keyboard shows up instead of the one specified. I will work on a fix

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/quick6black/flex-Android-Material-Skins/issues/2#issuecomment-250220547, or mute the thread https://github.com/notifications/unsubscribe-auth/AEGgTKHeMEZu27PytYDCjsHfBs9R0qHxks5qupWbgaJpZM4KFE28 .

leossmith avatar Sep 28 '16 17:09 leossmith

no problem, thanks for the positive feedback. What app? Would like to check it out

quick6black avatar Sep 28 '16 19:09 quick6black

It is a calculator for pokemon go :) https://play.google.com/store/apps/details?id=tech.simpleapps.pokecalculator

leossmith avatar Sep 28 '16 19:09 leossmith