Add shortcut to show about dialog
Press 'H' to get to the helpful about dialog.
This commit is contained in:
parent
d106552ad3
commit
e56d213931
3 changed files with 15 additions and 5 deletions
11
js/index.js
11
js/index.js
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue