Approved! Regards, Max Carlson OpenLaszlo.org
On 7/23/10 6:58 AM, André Bargull wrote:
Change 20100723-bargull-a5n by barg...@bargull02 on 2010-07-23 15:42:37 in /home/anba/src/svn/openlaszlo/trunk for http://svn.openlaszlo.org/openlaszlo/trunk Summary: prevent non-selectable textfields to gain focus Bugs Fixed: LPP-9007 (Edittext is not locked while modaldialog is opened) Technical Reviewer: max QA Reviewer: hqm Details: Setting selectable to false no longer prevents users to activate a textfield by mouse in swf9/10. I can't say why this has changed, maybe it's just a plain Flash Player bug (I should file a bug to Adobe, they should be able to respond here). Nevertheless, I've tried the following work arounds: - listen to mouse-down events and then ignore the following focus-event => doesn't work completely, because sometimes the focus-event is sent before the mouse-down event (hurray for non-determinism!) - listen to mouse-focus-change events on the textfield => the event isn't dispatched on focus-in for the textfield Therefore the hard way: Listen to mouse-focus-change events on the stage and whenever the relatedObject is a non-selectable textfield, call preventDefault() and remove the keyboard control. Tests: test cases from bug report Files: M WEB-INF/lps/lfc/kernel/swf9/LFCApplication.as Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20100723-bargull-a5n.tar
