aboutsummaryrefslogtreecommitdiffhomepage
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Resources/static/themes/baggy/js/shortcuts/main.js7
-rw-r--r--app/Resources/static/themes/material/js/shortcuts/main.js6
-rw-r--r--app/config/config.yml1
3 files changed, 14 insertions, 0 deletions
diff --git a/app/Resources/static/themes/baggy/js/shortcuts/main.js b/app/Resources/static/themes/baggy/js/shortcuts/main.js
index e69de29b..aed09aee 100644
--- a/app/Resources/static/themes/baggy/js/shortcuts/main.js
+++ b/app/Resources/static/themes/baggy/js/shortcuts/main.js
@@ -0,0 +1,7 @@
1$(document).ready(() => {
2 Mousetrap.bind('s', () => {
3 $('#search').trigger('click');
4 $('#search_entry_term').focus();
5 return false;
6 });
7});
diff --git a/app/Resources/static/themes/material/js/shortcuts/main.js b/app/Resources/static/themes/material/js/shortcuts/main.js
index 8514f71e..ad4ca80a 100644
--- a/app/Resources/static/themes/material/js/shortcuts/main.js
+++ b/app/Resources/static/themes/material/js/shortcuts/main.js
@@ -30,6 +30,12 @@ $(document).ready(() => {
30 /* Actions */ 30 /* Actions */
31 Mousetrap.bind('g n', () => { 31 Mousetrap.bind('g n', () => {
32 $('#nav-btn-add').trigger('click'); 32 $('#nav-btn-add').trigger('click');
33 return false;
34 });
35
36 Mousetrap.bind('s', () => {
37 $('#nav-btn-search').trigger('click');
38 return false;
33 }); 39 });
34 40
35 Mousetrap.bind('esc', () => { 41 Mousetrap.bind('esc', () => {
diff --git a/app/config/config.yml b/app/config/config.yml
index 48496bc2..53c26beb 100644
--- a/app/config/config.yml
+++ b/app/config/config.yml
@@ -364,3 +364,4 @@ fos_js_routing:
364 - developer 364 - developer
365 - howto 365 - howto
366 - logout 366 - logout
367 - new