From 3281fadfc5d48dd49dba5ef26ffb25010d4daa2a Mon Sep 17 00:00:00 2001 From: Umar Getagazov Date: Fri, 28 Jan 2022 17:26:36 +0700 Subject: [PATCH] Fix keyboard shortcuts for hypha actions --- static/shortcuts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/shortcuts.js b/static/shortcuts.js index 8b4a385..6dea429 100644 --- a/static/shortcuts.js +++ b/static/shortcuts.js @@ -325,8 +325,8 @@ window.addEventListener('load', () => { this.bindElement('s, Alt+ArrowUp, Ctrl+Alt+ArrowUp', $$('.navi-title a').slice(1, -1).slice(-1)[0], 'Parent hypha'); this.bindElement('c, Alt+ArrowDown, Ctrl+Alt+ArrowDown', '.subhyphae__link', 'First child hypha'); + this.bindElement('e, ' + (isMac ? "Meta+Enter" : "Ctrl+Enter"), '.btn__link_navititle[href^="/edit/"]', 'Edit this hypha'); this.bindElement('v', '.hypha-info__link[href^="/hypha/"]', 'Go to hypha′s page'); - this.bindElement('e, ' + (isMac ? "Meta+Enter" : "Ctrl+Enter"), '.edit-btn__link[href^="/edit/"]', 'Edit this hypha'); this.bindElement('a', '.hypha-info__link[href^="/attachment/"]', 'Go to attachment'); this.bindElement('h', '.hypha-info__link[href^="/history/"]', 'Go to history'); this.bindElement('r', '.hypha-info__link[href^="/rename-ask/"]', 'Rename this hypha');