From ce108bc07d8894ab6c345f668ea309cbba17d95f Mon Sep 17 00:00:00 2001 From: Timur Ismagilov Date: Thu, 3 Jul 2025 10:24:44 +0300 Subject: [PATCH] Replace Alt+arrows with Alt+Shift+arrows and increase shortcut help dialog max-width Fixes: https://github.com/bouncepaw/mycorrhiza/issues/262 --- web/static/default.css | 2 +- web/static/shortcuts.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/static/default.css b/web/static/default.css index 36c683f..f80f61f 100644 --- a/web/static/default.css +++ b/web/static/default.css @@ -317,7 +317,7 @@ kbd { top: 0; left: 50%; width: 100%; - max-width: 800px; + max-width: 1000px; margin: 96px auto; padding: 24px; transform: translate(-50%, 0); diff --git a/web/static/shortcuts.js b/web/static/shortcuts.js index 99073e3..63f9505 100644 --- a/web/static/shortcuts.js +++ b/web/static/shortcuts.js @@ -285,8 +285,8 @@ rrh.shortcuts.addGroup(new ShortcutGroup('Common', null, [ if (document.body.dataset.rrhAddr.startsWith('/hypha')) { rrh.shortcuts.addGroup(new ShortcutGroup('Hypha', null, [ new Shortcut('', $$('article .wikilink'), 'First 9 hypha′s links'), - new Shortcut(['p', 'Alt+ArrowLeft', 'Ctrl+Alt+ArrowLeft'], $('.prevnext__prev'), 'Previous hypha'), - new Shortcut(['n', 'Alt+ArrowRight', 'Ctrl+Alt+ArrowRight'], $('.prevnext__next'), 'Next hypha'), + new Shortcut(['p', 'Alt+Shift+ArrowLeft', 'Ctrl+Alt+ArrowLeft'], $('.prevnext__prev'), 'Previous hypha'), + new Shortcut(['n', 'Alt+Shift+ArrowRight', 'Ctrl+Alt+ArrowRight'], $('.prevnext__next'), 'Next hypha'), new Shortcut(['s', 'Alt+ArrowUp', 'Ctrl+Alt+ArrowUp'], $$('.navi-title a').slice(1, -1).slice(-1)[0], 'Parent hypha'), new Shortcut(['c', 'Alt+ArrowDown', 'Ctrl+Alt+ArrowDown'], $('.subhyphae__link'), 'First child hypha'), new Shortcut(['e', isMac ? 'Meta+Enter' : 'Ctrl+Enter'], $('.btn__link_navititle[href^="/edit/"]'), 'Edit this hypha'),