mirror of
https://github.com/45Drives/cockpit-navigator.git
synced 2025-08-14 14:18:31 +02:00
only delete with del if not using input field
This commit is contained in:
parent
8e55152c69
commit
35bb8241b7
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user