Utente:Salvatore Ingala/commandline.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m versione 1.0.3
m versione fixata da Jalo
Riga 5:
/*
Commandline versione 1.0.3
Scritto da [[Utente:Salvatore Ingala]]; contiene alcuni spezzoni di codice di [[Utente:Timendum]] e Jalo.
 
Rilasciato ai sensi delle license GFDL e GPL.
Riga 448:
 
/**** Command Line End ****/
 
//
// WikEdKeyFrame: Ridefinito il metodo che, altrimenti, trapperebbe ogni tasto schiacciato impedendo
// l'uso di 'Alt+z' quando ci si trova sulla finestra di modifica
//
 
function WikEdKeyFrame(event) {
if (wikEdUseWikEd == true) {
if (event.type == 'keypress')
manageHotKey(event);
switch (event.type) {
// trap the tab key
case 'keydown':
switch (event.keyCode) {
case 9:
if (event.shiftKey == false) {
event.preventDefault();
 
// scroll to text input top
if (wikEdFullScreenMode == false) {
var inputWrapperTop = WikEdGetOffsetTop(wikEdInputWrapper);
window.scroll(0, inputWrapperTop);
}
 
// focus the summary
wikEdSummaryText.focus();
}
break;
}
break;
 
// trap any other frame event
case 'keyup':
case 'keypress':
case 'mouseup':
 
// grey out inactive buttons
WikEdInactiveButtons();
 
// reset the frame DOM cache
wikEdFrameDOMCache = null;
break;
}
}
return;
}
 
/* </nowiki></pre> */