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