only delete with del if not using input field

This commit is contained in:
joshuaboud 2021-07-14 16:04:43 -03:00
parent 8e55152c69
commit 35bb8241b7
No known key found for this signature in database
GPG Key ID: 17EFB59E2A8BF50E

View File

@ -47,7 +47,7 @@ export class NavWindow {
e.preventDefault();
break;
case "keydown":
if (e.keyCode === 46) {
if (e.keyCode === 46 && e.target === document.body) {
this.delete_selected();
} else if (e.keyCode === 65 && e.ctrlKey) {
this.select_all();