cleanup
This commit is contained in:
parent
6450ebc24d
commit
4558c157d4
|
|
@ -28,6 +28,15 @@ function inputHandler(event: KeyboardEvent) {
|
||||||
runCommand(cmdInput.value)
|
runCommand(cmdInput.value)
|
||||||
clearInput()
|
clearInput()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// cleanup
|
||||||
|
setTimeout(() => {
|
||||||
|
if (cmdLine.dataset.extended && !cmdInput.value.includes("\n")) {
|
||||||
|
cmdInput.rows = 1
|
||||||
|
cmdInput.style.height = "auto"
|
||||||
|
delete cmdLine.dataset.extended
|
||||||
|
}
|
||||||
|
}, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
function pasteHandler(event: ClipboardEvent) {
|
function pasteHandler(event: ClipboardEvent) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user