From ce78ab53dc4980119a077fcfe94e8aa1e91055e1 Mon Sep 17 00:00:00 2001 From: tariqksoliman Date: Tue, 27 May 2025 10:48:10 -0700 Subject: [PATCH] #696 Info Tool Hotkeys --- src/essence/Ancillary/Description.js | 14 ++-- .../Basics/UserInterface_/BottomBar.js | 30 +++++++ src/essence/Tools/Info/InfoTool.js | 83 +++++++++++++------ 3 files changed, 97 insertions(+), 30 deletions(-) diff --git a/src/essence/Ancillary/Description.js b/src/essence/Ancillary/Description.js index 2e7ef73b6..ef3c464b6 100644 --- a/src/essence/Ancillary/Description.js +++ b/src/essence/Ancillary/Description.js @@ -180,10 +180,12 @@ const Description = { }) document.addEventListener('keydown', function (event) { - if (event.key === 'ArrowLeft') { - Description.navPrevious() - } else if (event.key === 'ArrowRight') { - Description.navNext() + if (!event.ctrlKey && !event.shiftKey) { + if (event.key === 'ArrowLeft') { + Description.navPrevious() + } else if (event.key === 'ArrowRight') { + Description.navNext() + } } }) @@ -1227,13 +1229,13 @@ const Description = { }) if (Description.tippyPrevious == null) Description.tippyPrevious = tippy('#mainDescNavBarPrevious', { - content: 'Previous Feature', + content: 'Previous Feature (Arrow-Left)', placement: 'bottom', theme: 'blue', }) if (Description.tippyNext == null) Description.tippyNext = tippy('#mainDescNavBarNext', { - content: 'Next Feature', + content: 'Next Feature (Arrow-Right)', placement: 'bottom', theme: 'blue', }) diff --git a/src/essence/Basics/UserInterface_/BottomBar.js b/src/essence/Basics/UserInterface_/BottomBar.js index 5e54323fd..2ac685c64 100644 --- a/src/essence/Basics/UserInterface_/BottomBar.js +++ b/src/essence/Basics/UserInterface_/BottomBar.js @@ -405,6 +405,36 @@ let BottomBar = { ``, ``, ``, + `
`, + `
Info
`, + ``, + `
`, `
`, `
Map
`, `