Ignore:
Timestamp:
08/10/08 07:09:26 (4 years ago)
Author:
s.lewis
Message:

Added a utils file for miscellaneous helper functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/scott/0.6-a4/js/plugins/sapi/sapi.js

    r521 r522  
    2222     
    2323        keyBoardEvent: null, 
     24         
     25        // Should keyboard event detection be a separate plugin? 
     26        // modifierKeys will be an array of the modifier keys (e.g., alt, control, shift)  
     27        // that were pressed at the time of the current keyboard event 
     28         
     29        modifierKeys: [], 
     30         
     31        // hasModifierKey is the interface to detect if a specific modifier key  
     32        // was down at the time of the current keyboard event 
     33         
     34        hasModifierKey: function (whichModifier) { 
     35            return this.modifierKeys.has(whichModifier); 
     36        }, 
    2437     
    2538        blocks: [ 
Note: See TracChangeset for help on using the changeset viewer.