Ticket #1178: shutter_reloaded_close.patch

File shutter_reloaded_close.patch, 769 bytes (added by snarfed, 22 months ago)
  • shutter-reloaded.dev.js

     
    77        else {oldonld = window.onload; window.onload = function(){if(oldonld){oldonld();};fn();}}; 
    88} 
    99 
     10// Escape closes shutter. 
     11document['onkeypress'] = function(e) { 
     12  if (e.keyCode == 27) shutterReloaded.hideShutter(); 
     13} 
     14 
    1015shutterReloaded = { 
    1116 
    1217        I : function (a) { 
     
    95100                if ( ! (S = t.I('shShutter')) ) { 
    96101                        S = document.createElement('div'); 
    97102                        S.setAttribute('id','shShutter'); 
     103                        S.setAttribute('onclick', 'shutterReloaded.hideShutter();return false;'); 
    98104                        document.getElementsByTagName('body')[0].appendChild(S); 
    99105                        t.hideTags(); 
    100106                }