Avoid closing the customizer on arrow up key context selection change (thanks barbaz for reporting).

This commit is contained in:
hackademix 2022-02-25 12:04:01 +01:00
parent b3a528aa1d
commit bdc782151f
1 changed files with 3 additions and 1 deletions

View File

@ -689,9 +689,11 @@ var UI = (() => {
} }
} }
return true; return true;
case "ArrowUp":
if (document.activeElement === ctxSelect)
return; // avoid closing the customizer on context selection change
case "ArrowLeft": case "ArrowLeft":
case "ArrowRight": case "ArrowRight":
case "ArrowUp":
this.onkeydown = null; this.onkeydown = null;
this.customize(null); this.customize(null);
preset.focus(); preset.focus();