Change philip-20110926-T4h by philip@PHILIP-I7 on 2011-09-26 13:28:51
EDT
in /cygdrive/c/clients/laszlo/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Detect when shift key released in swf9 (Chrome)
New Features:
Bugs Fixed: LPP-10082
Technical Reviewer: (pending)
QA Reviewer: dju
Doc Reviewer: (pending)
Documentation:
Release Notes:
Overview:
Most browsers generate a onkeyup event when the shift key is released.
This is not true on OSX Chrome. The key handler thinks the shift key is
still pressed so hitting tab key moves the cursor to the previous
component instead of the next component.
Details:
The shift key state is available in the as3 event handler. This state is
passed to LzKeys.__keyEvent to make sure the onkeyup event will clear
the shift key. I added a new parameter to __keyEvent with a default
value of null. Null indicates that the shift key state is unknown and
handles the case for dhtml. When not null, downKeysHash is updated with
the current shift state.
Tests:
See test case in jira. This now runs fine in both swf and dhtml.
Files:
M WEB-INF/lps/lfc/kernel/swf9/LzKeyboardKernel.as
M WEB-INF/lps/lfc/services/LzKeys.lzs
Changeset:
http://svn.openlaszlo.org/openlaszlo/patches/philip-20110926-T4h.tar