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

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

Bearbeitungen

Navigationsmenü