1
0
mirror of synced 2024-11-26 06:46:04 +03:00

Revert "Fixed Tab key not respecting opts.selectOnBlur" breaks tab key. fixes #1646.

This reverts commit 6eb74930d5.
This commit is contained in:
Igor Vaynberg 2013-08-30 08:54:43 -07:00
parent 9380a0678c
commit ca7550bf4d

View File

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