Author: max
Date: 2006-11-14 09:55:44 -0800 (Tue, 14 Nov 2006)
New Revision: 2522
Modified:
openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/dhtml/LzKeyboardKernel.js
Log:
Change 20061113-maxcarlson-M by [EMAIL PROTECTED] on 2006-11-13 15:18:31 PST
in /Users/maxcarlson/openlaszlo/legals
Summary: Fix arrow and space key navigation in DHTML
New Features:
Bugs Fixed: LPP-3052 - Using arrow and space keys for component navigation
causes the browser window to scroll in DHTML.
Technical Reviewer: promanik
QA Reviewer: hminsky
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Tests: Use the arrow keys for movement and the space key for selection in
http://localhost:8080/legals/examples/components/style_example.lzx?lzr=dhtml
Files:
M WEB-INF/lps/lfc/kernel/dhtml/LzKeyboardKernel.js
Changeset:
http://svn.openlaszlo.org/openlaszlo/patches/20061113-maxcarlson-M.tar
Modified:
openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/dhtml/LzKeyboardKernel.js
===================================================================
--- openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/dhtml/LzKeyboardKernel.js
2006-11-14 16:56:31 UTC (rev 2521)
+++ openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/dhtml/LzKeyboardKernel.js
2006-11-14 17:55:44 UTC (rev 2522)
@@ -47,14 +47,14 @@
dh['alt'] = e['altKey']
dh['control'] = e['ctrlKey']
dh['shift'] = e['shiftKey']
- //Debug.write('downKeysHash', t, k, dh, delta);
if (dirty && LzKeyboardKernel.__callback)
LzKeyboardKernel.__scope[LzKeyboardKernel.__callback](delta, k, 'on' + t);
- if (LzKeyboardKernel.__cancelEnter && (k == 9 || k == 13) ) {
- // cancel event bubbling for enter and tab keys
+ if (LzKeyboardKernel.__cancelEnter && (k == 9 || k == 13 || k == 0 ||
k == 37 || k == 38 || k == 39 || k == 40) ) {
+ // cancel event bubbling for enter, tab, space(scroll) and arrow
keys
e.cancelBubble = true;
e.returnValue = false;
return false;
}
+ //Debug.write('downKeysHash', t, k, dh, delta);
}
,__callback: null
,__scope: null
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins