Changeset 522 for branches


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

Added a utils file for miscellaneous helper functions

Location:
branches/scott/0.6-a4/js
Files:
1 added
2 edited

Legend:

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

    r521 r522  
    1818            behaviors: { 
    1919                mouseover: function(e) { 
    20                     // $('#log').html('Plugin for<br /> WYMeditor Instance ' + e.data.parent._index); 
     20                    // Add mouseover behavior here 
    2121                }, 
    2222                mouseout: function(e) { 
    23                     // $('#log').html(''); 
     23                    // Add mouseout behavior here 
    2424                }, 
    2525                click: function(e) { 
  • 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.