Add shortcut to show about dialog

Press 'H' to get to the helpful about dialog.
This commit is contained in:
Henrik Fehlauer 2020-06-12 18:00:00 +00:00
parent d106552ad3
commit e56d213931
3 changed files with 15 additions and 5 deletions

View file

@ -101,9 +101,14 @@
document,
'keydown',
function(e) {
if (BR.Util.keyboardShortcutsAllowed(e) && e.keyCode === 8 && !$('.modal.show').length) {
// char code for 'backspace'
clearRoute();
if (BR.Util.keyboardShortcutsAllowed(e) && !$('.modal.show').length) {
if (e.keyCode === 8) {
// char code for 'backspace'
clearRoute();
} else if (e.keyCode === 72) {
// char code for 'h'
$('#about').modal('show');
}
}
},
this