Fix some alginment issues

This commit is contained in:
2020-10-20 10:48:52 +02:00
parent 65299d825c
commit a6b50d2a8e
7 changed files with 34 additions and 15 deletions

View File

@@ -14,10 +14,14 @@ function FileManager(windowElement) {
document.addEventListener("keydown", e => { this.keyboardEvent(e) })
this.inputSearch.addEventListener("keyup", e => {
if (e.keyCode === 27) {
if (e.keyCode === 27) { // Escape
e.preventDefault()
this.inputSearch.blur()
return
} else if (e.keyCode === 13) { // Enter
e.preventDefault()
this.directoryElement.searchSubmit()
return
}
requestAnimationFrame(() => {
this.directoryElement.search(this.inputSearch.value)