hypersurge / awe6

awe6, the inverted game framework (Haxe)
http://awe6.org
MIT License
79 stars 11 forks source link

InputText problem #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It seems that framework somehow kills focus on textfield.When textfield type is 
"input" it never shows ibeam cursor and text input is blocked also native 
framework Text with p_isInput = true doesn't work.

awe6 v1.0.391

Original issue reported on code.google.com by Pukitis....@gmail.com on 15 Feb 2012 at 3:32

GoogleCodeExporter commented 9 years ago
Thank you for reporting.  Could you confirm target please (e.g. flash).

Original comment by robert.f...@hypersurge.com on 16 Feb 2012 at 3:08

GoogleCodeExporter commented 9 years ago
Target flash not sure for other targets.Really strange problem because in 
framework code everything looks ok not sure about mouse left/midle/right button 
click technic.
btw,small gain when returning driver InputMouse early out, cursor blinks ibeam 
however input is blocked.

Original comment by Pukitis....@gmail.com on 16 Feb 2012 at 7:33

GoogleCodeExporter commented 9 years ago
ok, now I'm confused. even in awe6 0.5.267 the same thing. mouse cursor blinks 
between ibeam and arrow, however textfield input is still blocked.

Original comment by Pukitis....@gmail.com on 16 Feb 2012 at 9:47

GoogleCodeExporter commented 9 years ago
fixed. the solution is quiet simple just get rid of _stage.focus = _stage in 
driver InputKeyboard._update() and InputMouse._update()

Original comment by Pukitis....@gmail.com on 16 Feb 2012 at 12:43

GoogleCodeExporter commented 9 years ago
Thank you.

For a full-fix we should also consider a scenario where the developer diverts 
focus to an alternative element - such as a textfield or button - and then 
removes that element from the displayList.  iirc in such a circumstance stage 
will no longer receive the events that the InputManagers require and they will 
fail to operate as expected.

Given that some drivers (e.g. jeash) do not support InputText at this time I am 
also wondering whether there is value in developing an "awe6 approach" to input 
text (similar to the awe6 BasicButton).  E.g. our TextField listens to 
InputManager and updates based on that.

Original comment by robert.f...@hypersurge.com on 16 Feb 2012 at 5:21

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r407.

Original comment by robert.f...@hypersurge.com on 16 Feb 2012 at 7:03