From 97b488731c99f27a870c39b3a14b4407084506f8 Mon Sep 17 00:00:00 2001 From: Alex Gu Date: Mon, 14 Jun 2021 00:31:09 +0300 Subject: [PATCH] Add first child hypha shortcut --- static/shortcuts.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/shortcuts.js b/static/shortcuts.js index 03c4192..beaa088 100644 --- a/static/shortcuts.js +++ b/static/shortcuts.js @@ -331,6 +331,7 @@ class Shortcut { 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+ArrowUp, Ctrl+Alt+ArrowUp', $$('.navi-title a').slice(1, -1).slice(-1)[0], 'Parent hypha'); + bindElement('c, Alt+ArrowDown, Ctrl+Alt+ArrowDown', '.subhyphae__link', 'First child hypha'); bindElement('e, Ctrl+Enter', '.hypha-tabs__link[href^="/edit/"]', 'Edit this hypha'); globalShortcuts.groupEnd();