aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Resources/static/themes/material/js/shortcuts/main.js
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-11-02 16:44:20 +0100
committerThomas Citharel <tcit@tcit.fr>2016-11-15 21:54:50 +0100
commit16ef7607f43ebc3e0134360b7657af191e14fe12 (patch)
tree81cdc13b1b626e313a51119847c5b7c603ca5fba /app/Resources/static/themes/material/js/shortcuts/main.js
parentaf61cb80eb600618df95a01a15a08e87fc878c2a (diff)
downloadwallabag-16ef7607f43ebc3e0134360b7657af191e14fe12.tar.gz
wallabag-16ef7607f43ebc3e0134360b7657af191e14fe12.tar.zst
wallabag-16ef7607f43ebc3e0134360b7657af191e14fe12.zip
Reorganized JS folders for shortcuts
Diffstat (limited to 'app/Resources/static/themes/material/js/shortcuts/main.js')
-rw-r--r--app/Resources/static/themes/material/js/shortcuts/main.js13
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 */
2Mousetrap.bind('g n', () => {
3 $('#nav-btn-add').trigger('click');
4});
5
6Mousetrap.bind('esc', () => {
7 $('.close').trigger('click');
8});
9
10// Display the first element of the current view
11Mousetrap.bind('right', () => {
12 $('ul.data li:first-child span.dot-ellipsis a')[0].click();
13});