Changeset 32804

Show
Ignore:
Timestamp:
22.02.2019 19:19:49 (6 months ago)
Author:
ak19
Message:

Previous commit additional description: Section setting up keyboard shortcuts has been shifted to using jQuery so that key mappings don't just work on Chrome but on Firefox too (and hopefully Edge, Safari, etc)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/map-scripts-editor.js

    r32803 r32804  
    342342    //Keyboard shortcuts             
    343343    var mapAndControls = $("#map-and-controls-" + this.id); 
    344      
     344 
     345        // Shifted to using jQuery so that key mappings don't just work on Chrome but on Firefox too (and hopefully Edge, Safari, etc) 
    345346    mapAndControls.keypress(function (event) {  //mapAndControls.keydown(function (event) {  
    346347        // https://stackoverflow.com/questions/2220196/how-to-decode-character-pressed-from-jquerys-keydowns-event-handler 
     
    764765    this.mapEditorHistory.presentOverlayPush(); 
    765766} 
     767