mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-02-22 01:42:47 +01:00
fix key input
This commit is contained in:
parent
726de16035
commit
af570fecf5
@ -143,7 +143,6 @@ namespace OS {
|
|||||||
private search(e: JQuery.KeyboardEventBase): void {
|
private search(e: JQuery.KeyboardEventBase): void {
|
||||||
const applist = this.refs.applist as ListViewTag;
|
const applist = this.refs.applist as ListViewTag;
|
||||||
const catlist = this.refs.catlist as ListViewTag;
|
const catlist = this.refs.catlist as ListViewTag;
|
||||||
catlist.selected = 0;
|
|
||||||
switch (e.which) {
|
switch (e.which) {
|
||||||
case 27:
|
case 27:
|
||||||
// escape key
|
// escape key
|
||||||
@ -163,6 +162,7 @@ namespace OS {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
return this.open();
|
return this.open();
|
||||||
default:
|
default:
|
||||||
|
catlist.selected = 0;
|
||||||
var text = (this.refs.search as HTMLInputElement)
|
var text = (this.refs.search as HTMLInputElement)
|
||||||
.value;
|
.value;
|
||||||
if (!(text.length >= 3)) {
|
if (!(text.length >= 3)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user