mirror of
https://github.com/MeexReay/poshlostios.git
synced 2025-06-24 10:32:59 +03:00
arrow right fix
This commit is contained in:
parent
e55f3149f5
commit
a1dee4f220
@ -68,7 +68,7 @@ async function main(args) {
|
||||
} else if (event.key == "ArrowLeft") {
|
||||
pos[0] = Math.max(0, pos[0] - 1)
|
||||
} else if (event.key == "ArrowRight") {
|
||||
pos[0] = Math.min(content.split("\n")[y].length - 1, pos[0] + 1)
|
||||
pos[0] = Math.min(content.split("\n")[y].length, pos[0] + 1)
|
||||
} else if (event.key == "Escape") {
|
||||
mode = "normal"
|
||||
} else if (event.key == "Insert") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user