1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-11 17:51:02 +00:00

Added shortcut

This commit is contained in:
Nicolas Lœuillet 2016-11-18 19:21:31 +01:00
parent 32f455c131
commit 995c204428
7 changed files with 19 additions and 5 deletions

View file

@ -0,0 +1,7 @@
$(document).ready(() => {
Mousetrap.bind('s', () => {
$('#search').trigger('click');
$('#search_entry_term').focus();
return false;
});
});

View file

@ -30,6 +30,12 @@ $(document).ready(() => {
/* Actions */
Mousetrap.bind('g n', () => {
$('#nav-btn-add').trigger('click');
return false;
});
Mousetrap.bind('s', () => {
$('#nav-btn-search').trigger('click');
return false;
});
Mousetrap.bind('esc', () => {

View file

@ -364,3 +364,4 @@ fos_js_routing:
- developer
- howto
- logout
- new