In today's world, User:Guarapiranga/accessKeysCheatSheet.js is a topic that has gained great relevance in various areas. Both in personal and professional life, User:Guarapiranga/accessKeysCheatSheet.js has aroused growing interest due to its impact on society. Whether locally or globally, User:Guarapiranga/accessKeysCheatSheet.js has significantly influenced the way we face various challenges and opportunities. In this article, we will thoroughly explore User:Guarapiranga/accessKeysCheatSheet.js and its role today, analyzing its impact in different contexts and proposing possible solutions or approaches to address it effectively.
// Adds alt+shift+? as an access key to show a list of all default access keys
$(() => {
let dialog;
$('<a>').attr('accesskey', '?').text('This access keys cheat sheet').hide().click(() => {
if (dialog) {
if (dialog.isOpened()) {
dialog.close();
} else {
dialog.open({
actions: ,
size: 'medium'
});
}
return false;
}
mw.loader.using('oojs-ui-windows', () => {
let winMan = new OO.ui.WindowManager();
winMan.$element.css('width', '35em').appendTo(document.body);
dialog = new OO.ui.MessageDialog();
winMan.addWindows();
$('<table>').addClass('wikitable').css('width', '100%').append(
$('').map(function () {
return $('<tr>').append(
$('<th>').text(this.accessKey.toUpperCase()),
$('<td>').text(
this.getAttribute('aria-label') ||
this.title.replace(/ \/, '') ||
this.textContent ||
this.value ||
$(`label`).text()
)
);
}).get()
).appendTo(dialog.text.$element);
dialog.open({
actions: ,
size: 'medium'
});
});
return false;
}).appendTo(document.body);
});