From af570fecf5010464a3059fcfb7b1d3d11ef1ccc1 Mon Sep 17 00:00:00 2001 From: lxsang Date: Wed, 31 Mar 2021 23:32:14 +0200 Subject: [PATCH] fix key input --- src/core/tags/SystemPanelTag.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/tags/SystemPanelTag.ts b/src/core/tags/SystemPanelTag.ts index 4a965b9..48ae047 100644 --- a/src/core/tags/SystemPanelTag.ts +++ b/src/core/tags/SystemPanelTag.ts @@ -143,7 +143,6 @@ namespace OS { private search(e: JQuery.KeyboardEventBase): void { const applist = this.refs.applist as ListViewTag; const catlist = this.refs.catlist as ListViewTag; - catlist.selected = 0; switch (e.which) { case 27: // escape key @@ -163,6 +162,7 @@ namespace OS { e.preventDefault(); return this.open(); default: + catlist.selected = 0; var text = (this.refs.search as HTMLInputElement) .value; if (!(text.length >= 3)) {