Changeset 1248 for trunk


Ignore:
Timestamp:
07/02/13 13:30:25 (11 years ago)
Author:
pharms
Message:
  • added tracing of key downs on tab key
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-htmlmonitor/src/main/js/autoquest-htmlmonitor.js

    r1247 r1248  
    7373    //{ "tag": "blockquote", "actions": [  ] }, 
    7474    { "tag": "body", "actions": [ "onclick", 
     75                                  "onkeydown", 
    7576                                  "onpagehide", 
    7677                                  "onpageshow", 
     
    597598     
    598599    eventType = eventName.toLowerCase(); 
     600     
     601    // filter onkeydown events, which are not of interest 
     602    if ((eventType === "onkeydown") && (node === document.body)) { 
     603        // do not handle key downs on the body which are other than tabs (keycode 9) 
     604        if (event.keyCode !== 9) { 
     605            return; 
     606        } 
     607    } 
    599608 
    600609    // check, if the preceeding event is more concrete, i.e. the new event to be handled is only 
     
    612621                return; 
    613622            } 
    614             else if (eventName !== "onscroll") { 
     623            else if (eventType !== "onscroll") { 
    615624                // we have the same event on the same element. If it is an onscroll, we should 
    616625                // reuse it. But it is not an onscroll. So we ignore the existing event. 
Note: See TracChangeset for help on using the changeset viewer.