Changeset 32804


Ignore:
Timestamp:
02/22/19 19:19:49 (21 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)

File:
1 edited

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
Note: See TracChangeset for help on using the changeset viewer.