Benutzer:Totto/common.js: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
K
function(){?anon}
K (((e)=> {e.doIt}))
K (function(){?anon})
Zeile 43:
var num= hotkey.toUpperCase().charCodeAt(0);
 
document.addEventListener("keydown",( function(event) => { const key = event.keyCode; if(key===num){ window[function_to_call](); } } ) );
 
}
 
 
 
function addHotkeyF(hotkey,function_to_call){
var num= hotkey.toUpperCase().charCodeAt(0);
document.addEventListener("keydown",( function(event) => { const key = event.keyCode; if(key===num){ function_to_call(); } } ) );
}
 
1.060

Bearbeitungen

Navigationsmenü