fix key input

This commit is contained in:
lxsang 2021-03-31 23:32:14 +02:00
parent 726de16035
commit af570fecf5

View File

@ -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)) {