mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 04:14:41 +00:00
1 parent
37cb6220fe
commit
512e2ffde4
1 file changed
+3
-1
@@ -431,10 +431,12 @@
|
||||
});
|
||||
$(document).on('keydown', function(e){
|
||||
if (e.which == 27) {
|
||||
// `Esc` key pressed.
|
||||
if ($('body').hasClass('searching')) {
|
||||
toggleSearchDialog();
|
||||
}
|
||||
} else if (e.which == 191) {
|
||||
} else if (e.which == 191 && e.shiftKey == false && !$('input,textarea').is(':focus')) {
|
||||
// `/` key pressed outside of text input.
|
||||
e.preventDefault();
|
||||
toggleSearchDialog();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user