Skip to content

Commit

Permalink
now on input in the hook scrolls to the parent element to make sure o…
Browse files Browse the repository at this point in the history
…ne can see what they are typing after parent expansion
  • Loading branch information
r-neal-kelly committed Jan 4, 2024
1 parent 5c098a5 commit 3768ea5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions data/Books/Exodus/English/KJV 1872-1888/Chapter 18.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
⸨cen⸩CHAPTER XVIII⸼
⸨i⸩₁ Jethro bringeth to Moses his wife and two sons. ₇ Moses entertaineth him. ₁₃ Jethroʼs counsel is accepted. ₂₇ Jethro departeth.⸨/i⸩

₁ ⸨sc⸩When⸨/sc⸩ ⸨i⸩ᵃ⸨/i⸩ Jethro, the priest of Midian, Mosesʼ father in law, heard of all that God had done for Moses, and for Israel his people, ⸨i⸩and⸨/i⸩ that the ⸨sc⸩Lord⸨/sc⸩ had brought Israel out of Egypt;
2 changes: 1 addition & 1 deletion js/keyboard/hook.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions ts/keyboard/hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ export class Instance
if (selection) {
selection.collapse(node, (node.nodeValue as string).length);
}

if (node.parentElement != null) {
node.parentElement.scrollIntoView();
}
}

async On_Paste(
Expand Down

0 comments on commit 3768ea5

Please sign in to comment.