Shikhar13 / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

Pushing a Button doesn't work the first time when TextField is selected #265

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a Form with a TextField and a Button that e.g. shows a dialog when 
clicked
2. Start the app
3. Select the TextField so that you can write in it
4. Push the button -> it will work only if you push it a second time

What is the expected output? What do you see instead?
I expect it to work on the first click. It instead only gets highlighted but 
there is no actionevent (it should show the dialog on the first click).

What version of the product are you using? On what operating system?
latest cn1, w7

Please provide any additional information below.
I only tested this in the simulator because i don't have a phone here to test 
this.

Original issue reported on code.google.com by tron.cos...@gmail.com on 15 Jul 2012 at 11:57

GoogleCodeExporter commented 9 years ago
I'm assuming its on a device with a touch screen. The first click outside of 
the text field just folds the field and ends editing by convention. I'm not 
sure if we should propagate that behavior.
Can you point out how the native UI acts in such cases?

Original comment by shai.almog on 16 Jul 2012 at 4:39

GoogleCodeExporter commented 9 years ago
the native android ui accepts a button push even if a textfield is selected. 
i think it's also common on other os, can anyone confirm?

Original comment by tron.cos...@gmail.com on 16 Jul 2012 at 2:49

GoogleCodeExporter commented 9 years ago
it is confusing for the users that tested my app, this is another hint that it 
should be changed ;-)

Original comment by tron.cos...@gmail.com on 2 Aug 2012 at 8:03

GoogleCodeExporter commented 9 years ago
I checked the native IOS applications and they accept the button push even if a 
text field is selected or keypad is shown. This will be required, as otherwise 
after entering some value in a field, user will have to click twice. On a touch 
screen device, a single touch on the button should perform the action.

Please support this.

Original comment by nir...@nvsoft.com on 19 Sep 2012 at 12:16

GoogleCodeExporter commented 9 years ago

Original comment by shai.almog on 5 Oct 2012 at 3:10

GoogleCodeExporter commented 9 years ago
I fixed this in SVN, this is a pretty hairy fix though. Chen please review this.
The issue was reproducible in J2SE as well.

Original comment by shai.almog on 10 Oct 2012 at 9:47

GoogleCodeExporter commented 9 years ago
You're the man Shai :)

Fixed the issue of not getting action events on components when keyboard is 
showing, fixed my issue with both Buttons and Lists (on android).

Thanks.

Original comment by Ian.Te...@gmail.com on 10 Oct 2012 at 7:50

GoogleCodeExporter commented 9 years ago
Hi Shai,

When is this fix going to be available on the build server? I tested with iOS 
build just now, and it is not yet working for the iPhone.

Thanks

Original comment by nir...@nvsoft.com on 16 Oct 2012 at 6:58

GoogleCodeExporter commented 9 years ago
This requires an additional fix for iOS.
iOS has keyboard folding hardcoded in native code. I'll take a look.

Original comment by shai.almog on 17 Oct 2012 at 8:01

GoogleCodeExporter commented 9 years ago
This will be a part of the next server update

Original comment by shai.almog on 25 Oct 2012 at 11:27