1
0
mirror of synced 2025-02-16 20:13:16 +03:00

Fixed Tab key not respecting opts.selectOnBlur

This commit is contained in:
Ebbe Brandstrup 2013-07-22 09:30:35 +02:00
parent dfeb6d4173
commit 6eb74930d5

View File

@ -1907,7 +1907,10 @@ the specific language governing permissions and limitations under the Apache Lic
killEvent(e);
return;
case KEY.TAB:
this.selectHighlighted({noFocus: true});
// if selectOnBlur == true, select the currently highlighted option
if (this.opts.selectOnBlur) {
this.selectHighlighted({noFocus: true});
}
return;
case KEY.ESC:
this.cancel(e);
@ -2487,7 +2490,10 @@ the specific language governing permissions and limitations under the Apache Lic
killEvent(e);
return;
case KEY.TAB:
this.selectHighlighted({noFocus:true});
// if selectOnBlur == true, select the currently highlighted option
if (this.opts.selectOnBlur) {
this.selectHighlighted({noFocus:true});
}
this.close();
return;
case KEY.ESC: