mirror of
https://github.com/MeexReay/poshlostios.git
synced 2025-06-24 18:42:59 +03:00
backspace cursor fix asdasdasdasd
This commit is contained in:
parent
d73fe415b1
commit
5d29953930
@ -28,7 +28,7 @@ async function readLine(on_key=(key, ctrl, alt, shift, content, pos) => [content
|
|||||||
|
|
||||||
if (event.type == "key") {
|
if (event.type == "key") {
|
||||||
if (event.key == "Backspace") {
|
if (event.key == "Backspace") {
|
||||||
if (pos > 1) {
|
if (pos >= 1) {
|
||||||
content = content.slice(0, pos - 1) + content.slice(pos)
|
content = content.slice(0, pos - 1) + content.slice(pos)
|
||||||
pos -= 1
|
pos -= 1
|
||||||
setTerminal(start_terminal.substring(0, terminal_text.length-length) + content)
|
setTerminal(start_terminal.substring(0, terminal_text.length-length) + content)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user