OpenLayers OpenLayers

Changeset 4782

Show
Ignore:
Timestamp:
10/03/07 12:11:19 (1 year ago)
Author:
tcoulter
Message:

Edit: The shift key didn't register when pressing Ctrl-Shift-Z.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/tschaub/wfsv/lib/OpenLayers/Control/UndoRedo.js

    r4780 r4782  
    7575        }; 
    7676        this.handler = new OpenLayers.Handler.Keyboard( 
    77             this, keyboardOptions, {keyMask: OpenLayers.Handler.MOD_CTRL} 
     77            this, keyboardOptions 
    7878        ); 
    7979 
     
    100100        evt = this.handler.evt; 
    101101         
    102         if (code == this.KEY_Z
     102        if (code == this.KEY_Z && evt.ctrlKey == true && evt.shiftKey == false
    103103        { 
    104104            this.undo(); 
    105105        } 
    106         else if ((code == this.KEY_Y) || (code == this.KEY_Z && evt.ctrlShift == true)) 
     106        else if (evt.ctrlKey == true && ((code == this.KEY_Y) || (code == this.KEY_Z && evt.shiftKey == true))) 
    107107        
    108108        {