File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1907,7 +1907,10 @@ the specific language governing permissions and limitations under the Apache Lic
19071907 killEvent ( e ) ;
19081908 return ;
19091909 case KEY . TAB :
1910- this . selectHighlighted ( { noFocus : true } ) ;
1910+ // if selectOnBlur == true, select the currently highlighted option
1911+ if ( this . opts . selectOnBlur ) {
1912+ this . selectHighlighted ( { noFocus : true } ) ;
1913+ }
19111914 return ;
19121915 case KEY . ESC :
19131916 this . cancel ( e ) ;
@@ -2487,7 +2490,10 @@ the specific language governing permissions and limitations under the Apache Lic
24872490 killEvent ( e ) ;
24882491 return ;
24892492 case KEY . TAB :
2490- this . selectHighlighted ( { noFocus :true } ) ;
2493+ // if selectOnBlur == true, select the currently highlighted option
2494+ if ( this . opts . selectOnBlur ) {
2495+ this . selectHighlighted ( { noFocus :true } ) ;
2496+ }
24912497 this . close ( ) ;
24922498 return ;
24932499 case KEY . ESC :
You can’t perform that action at this time.
0 commit comments