From 1be4b0ef64cae7e461f5c2edd4b00ee74d6c6157 Mon Sep 17 00:00:00 2001 From: Alex Gu Date: Mon, 14 Jun 2021 00:18:22 +0300 Subject: [PATCH] Fix Typo --- static/shortcuts.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/shortcuts.js b/static/shortcuts.js index 3d793d3..03c4192 100644 --- a/static/shortcuts.js +++ b/static/shortcuts.js @@ -53,8 +53,8 @@ class Shortcut { switch (key) { case 'ArrowLeft': return '←'; case 'ArrowRight': return '→'; - case 'ArrowTop': return '↑'; - case 'ArrowBottom': return '↓'; + case 'ArrowUp': return '↑'; + case 'ArrowDown': return '↓'; case 'Comma': return ','; case 'Enter': return '↩'; case ' ': return 'Space'; @@ -330,7 +330,7 @@ class Shortcut { globalShortcuts.fakeItem('1 – 9', 'First 9 hypha′s links'); bindElement('p, Alt+ArrowLeft, Ctrl+Alt+ArrowLeft', '.prevnext__prev', 'Next hypha'); bindElement('n, Alt+ArrowRight, Ctrl+Alt+ArrowRight', '.prevnext__next', 'Previous hypha'); - bindElement('s, Alt+ArrowTop, Ctrl+Alt+ArrowTop', $$('.navi-title a').slice(1, -1).slice(-1)[0], 'Parent hypha'); + bindElement('s, Alt+ArrowUp, Ctrl+Alt+ArrowUp', $$('.navi-title a').slice(1, -1).slice(-1)[0], 'Parent hypha'); bindElement('e, Ctrl+Enter', '.hypha-tabs__link[href^="/edit/"]', 'Edit this hypha'); globalShortcuts.groupEnd();