You can use the keyboard to move up or down to obtain values in the Lenovo menu as needed, just like google baidu's query function.
I have not found any plug-ins that can implement this function for a long time on the Internet. Instead, I can only change the code by myself.
Find the KEY. DOWN and KEY. UP in js and execute the code.
As follows:
Copy codeThe Code is as follows:
Case KEY. DOWN:
Event. preventDefault ();
If (select. visible ()){
Select. next ();
}
Else {
OnChange (0, true );
}
Break;
After select. next ();
Copy codeThe Code is as follows:
Var selected = select. selected ();
Var v = selected. result;
$ Input. val (v );
In this way, the corresponding value is displayed in the input box when the up and down keys are enabled, but the cursor on the Lenovo keyboard is gone.
Find the definition of select. next (); Code
Copy codeThe Code is as follows:
Next: function (){
MoveSelect (1 );
},
Add a similar method
Copy codeThe Code is as follows:
Stay: function (){
MoveSelect (1 );
},
Then
Copy codeThe Code is as follows:
Case KEY. DOWN:
Event. preventDefault ();
If (select. visible ()){
Select. next ();
Var selected = select. selected ();
Var v = selected. result;
$ Input. val (v );
Select. stay ();
}
Else {
OnChange (0, true );
}
Break;
In this way, you can.
======================================
Thank you very much for the original author,
Add a similar method
Copy codeThe Code is as follows:
Stay: function (){
MoveSelect (1 );
}, And then found to click the upper and lower keys, is to move across rows, so changed:
Stay: function (){
MoveSelect (0 );
},