+    /**
+     * Sent for all key events
+     * @lzxtype event
+     * @access public
+     */
+    var onkeyevent :LzDeclaredEventClass = LzDeclaredEvent;
and
+            if (this.onkeyevent.ready) {
+                // send generic key event
+ this.onkeyevent.sendEvent({type: 'onmousewheeldelta', key: d});
+            }

Either amend the description to state that the term "key events" include mousewheeldelta, or don't send the "onkeyevent" for mousewheeldelta at all.

(Is it only me who thinks that the mousewheeldelta event was added to the wrong class and it should actually belong to the lz.GlobalMouseService class?!)


On 7/17/2010 2:58 AM, Max Carlson wrote:
Change 20100716-maxcarlson-z by maxcarl...@friendly on 2010-07-16 17:44:30 PDT
     in /Users/maxcarlson/openlaszlo/trunk-clean
     for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Add API to capture all mouse and keyboard events

New Features: LPP-9200 - Add way to capture all mouse and keyboard events

Technical Reviewer: ptw
QA Reviewer: hminsky

Details: LzGlobalMouse - Add mouseevent event that sends all mouse events.

LzKeys - Add onkeyevent event that sends all keyboard events.

LzNode - Move nodePath out of the $debug block so it's always available.

Tests: IWFM!

Files:
M       WEB-INF/lps/lfc/services/LzGlobalMouse.lzs
M       WEB-INF/lps/lfc/services/LzKeys.lzs
M       WEB-INF/lps/lfc/core/LzNode.lzs

Changeset: 
http://svn.openlaszlo.org/openlaszlo/patches/20100716-maxcarlson-z.tar


Reply via email to