diff options
Diffstat (limited to 'app/Resources/static/themes/material/js/shortcuts/main.js')
-rw-r--r-- | app/Resources/static/themes/material/js/shortcuts/main.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/Resources/static/themes/material/js/shortcuts/main.js b/app/Resources/static/themes/material/js/shortcuts/main.js new file mode 100644 index 00000000..ccd3c92d --- /dev/null +++ b/app/Resources/static/themes/material/js/shortcuts/main.js | |||
@@ -0,0 +1,13 @@ | |||
1 | /* Actions */ | ||
2 | Mousetrap.bind('g n', () => { | ||
3 | $('#nav-btn-add').trigger('click'); | ||
4 | }); | ||
5 | |||
6 | Mousetrap.bind('esc', () => { | ||
7 | $('.close').trigger('click'); | ||
8 | }); | ||
9 | |||
10 | // Display the first element of the current view | ||
11 | Mousetrap.bind('right', () => { | ||
12 | $('ul.data li:first-child span.dot-ellipsis a')[0].click(); | ||
13 | }); | ||