2016-11-03 09:02:16 +00:00
|
|
|
import Mousetrap from 'mousetrap';
|
|
|
|
|
2017-09-06 20:42:23 +00:00
|
|
|
/* Shortcuts */
|
2016-11-02 15:44:20 +00:00
|
|
|
|
|
|
|
/* Go to */
|
|
|
|
Mousetrap.bind('g u', () => { window.location.href = Routing.generate('homepage'); });
|
|
|
|
Mousetrap.bind('g s', () => { window.location.href = Routing.generate('starred'); });
|
|
|
|
Mousetrap.bind('g r', () => { window.location.href = Routing.generate('archive'); });
|
|
|
|
Mousetrap.bind('g a', () => { window.location.href = Routing.generate('all'); });
|
|
|
|
Mousetrap.bind('g t', () => { window.location.href = Routing.generate('tag'); });
|
|
|
|
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'); });
|
2016-11-23 13:40:00 +00:00
|
|
|
Mousetrap.bind('g l', () => { window.location.href = Routing.generate('fos_user_security_logout'); });
|