File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1606,15 +1606,15 @@ class Choices {
1606
1606
event . key === 'Unidentified' ;
1607
1607
1608
1608
/*
1609
- We do not show the dropdown if the keycode was tab or esc
1610
- as these one are used to focusOut of e.g. select choices.
1609
+ We do not show the dropdown if focusing out with esc or navigating through input fields.
1611
1610
An activated search can still be opened with any other key.
1612
1611
*/
1613
1612
if (
1614
1613
! this . _isTextElement &&
1615
1614
! hasActiveDropdown &&
1616
1615
keyCode !== KeyCodeMap . ESC_KEY &&
1617
- keyCode !== KeyCodeMap . TAB_KEY
1616
+ keyCode !== KeyCodeMap . TAB_KEY &&
1617
+ keyCode !== KeyCodeMap . SHIFT_KEY
1618
1618
) {
1619
1619
this . showDropdown ( ) ;
1620
1620
Original file line number Diff line number Diff line change 1
1
export const KeyCodeMap = {
2
2
TAB_KEY : 9 ,
3
+ SHIFT_KEY : 16 ,
3
4
BACK_KEY : 46 ,
4
5
DELETE_KEY : 8 ,
5
6
ENTER_KEY : 13 ,
You can’t perform that action at this time.
0 commit comments