mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-06 17:41:01 +00:00
Move global shortcuts to material
This commit is contained in:
parent
00e4868ee5
commit
8c2df28596
4 changed files with 12 additions and 19 deletions
|
@ -1,15 +0,0 @@
|
||||||
import Mousetrap from 'mousetrap';
|
|
||||||
|
|
||||||
/* Shortcuts */
|
|
||||||
|
|
||||||
/* 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'); });
|
|
||||||
Mousetrap.bind('g l', () => { window.location.href = Routing.generate('fos_user_security_logout'); });
|
|
|
@ -19,10 +19,6 @@ import '@fontsource/eb-garamond';
|
||||||
import '@fontsource/montserrat';
|
import '@fontsource/montserrat';
|
||||||
import '@fontsource/oswald';
|
import '@fontsource/oswald';
|
||||||
|
|
||||||
/* Shortcuts */
|
|
||||||
import '../_global/js/shortcuts/entry';
|
|
||||||
import '../_global/js/shortcuts/main';
|
|
||||||
|
|
||||||
/* Highlight */
|
/* Highlight */
|
||||||
import '../_global/js/highlight';
|
import '../_global/js/highlight';
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,18 @@
|
||||||
import Mousetrap from 'mousetrap';
|
import Mousetrap from 'mousetrap';
|
||||||
import $ from 'jquery';
|
import $ from 'jquery';
|
||||||
|
|
||||||
|
/* 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'); });
|
||||||
|
Mousetrap.bind('g l', () => { window.location.href = Routing.generate('fos_user_security_logout'); });
|
||||||
|
|
||||||
function toggleFocus(cardToToogleFocus) {
|
function toggleFocus(cardToToogleFocus) {
|
||||||
if (cardToToogleFocus) {
|
if (cardToToogleFocus) {
|
||||||
$(cardToToogleFocus).toggleClass('z-depth-4');
|
$(cardToToogleFocus).toggleClass('z-depth-4');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue