disable keydown listeners while editing filename

This commit is contained in:
joshuaboud 2021-07-19 12:22:01 -03:00
parent ef6cb9ecbe
commit 514729894f
No known key found for this signature in database
GPG Key ID: 17EFB59E2A8BF50E

View File

@ -53,6 +53,7 @@ export class NavEntry {
let elem = e.target;
elem.style.width = elem.value.length + "ch";
}
title_edit.addEventListener("keydown", (e) => {e.stopPropagation();});
title_edit.addEventListener("click", (e) => {e.stopPropagation();});
this.dom_element.appendChild(title_edit);
this.stat = stat;