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 @@ -1611,15 +1611,15 @@ class Choices {
1611
1611
event . key === 'Unidentified' ;
1612
1612
1613
1613
/*
1614
- We do not show the dropdown if the keycode was tab or esc
1615
- as these one are used to focusOut of e.g. select choices.
1614
+ We do not show the dropdown if focusing out with esc or navigating through input fields.
1616
1615
An activated search can still be opened with any other key.
1617
1616
*/
1618
1617
if (
1619
1618
! this . _isTextElement &&
1620
1619
! hasActiveDropdown &&
1621
1620
keyCode !== KeyCodeMap . ESC_KEY &&
1622
- keyCode !== KeyCodeMap . TAB_KEY
1621
+ keyCode !== KeyCodeMap . TAB_KEY &&
1622
+ keyCode !== KeyCodeMap . SHIFT_KEY
1623
1623
) {
1624
1624
this . showDropdown ( ) ;
1625
1625
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