]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - app/Resources/static/themes/_global/js/shortcuts/main.js
Merge pull request #3011 from wallabag/2.3
[github/wallabag/wallabag.git] / app / Resources / static / themes / _global / js / shortcuts / main.js
index 0bb962d0e3ebe1d1a7bd0c000508f8d845a50e57..b99fa802a8fa6b7a5cf2da79514c6eb0b9e2ab05 100644 (file)
@@ -1,4 +1,6 @@
-/** Shortcuts **/
+import Mousetrap from 'mousetrap';
+
+/* Shortcuts */
 
 /* Go to */
 Mousetrap.bind('g u', () => { window.location.href = Routing.generate('homepage'); });
@@ -10,4 +12,4 @@ Mousetrap.bind('g c', () => { window.location.href = Routing.generate('config');
 Mousetrap.bind('g i', () => { window.location.href = Routing.generate('import'); });
 Mousetrap.bind('g d', () => { window.location.href = Routing.generate('developer'); });
 Mousetrap.bind('?', () => { window.location.href = Routing.generate('howto'); });
-Mousetrap.bind('g l', () => { window.location.href = Routing.generate('logout'); });
+Mousetrap.bind('g l', () => { window.location.href = Routing.generate('fos_user_security_logout'); });