diff --git a/src/SquareEdit/Contents.ts b/src/SquareEdit/Contents.ts index d73310fa7..747ed291a 100644 --- a/src/SquareEdit/Contents.ts +++ b/src/SquareEdit/Contents.ts @@ -458,6 +458,14 @@ export const hotkeysModal = `
Hide Glyph
+
+
+
Shift
+
+
+
T
+
+
Scroll To Syllable Text
+
@@ -501,10 +509,10 @@ export const hotkeysModal = `
-
1/2/3/4
+
1/2/3/4/5/6
- Select by Syllable/Neume/Neume Component/Staff + Select by Syllable/Neume/Neume Component/Staff/Layer Element/BBox
diff --git a/src/TextEditMode.ts b/src/TextEditMode.ts index 5fd17ce31..b7ea27fe1 100644 --- a/src/TextEditMode.ts +++ b/src/TextEditMode.ts @@ -107,6 +107,15 @@ export default class TextEditMode implements TextEditInterface { span.removeEventListener('click', selectSylText); span.addEventListener('click', selectSylText); }); + + document.addEventListener('keydown', (event) => { + if (event.shiftKey && event.key === 'T') { + const selectedSylText = document.querySelector('.text-select'); + if (selectedSylText) { + selectedSylText.scrollIntoView({ behavior: 'smooth' }); + } + } + }); }