Skip to content

Commit 84c35a9

Browse files
authored
Merge branch 'master' into VSlavov/selection-header-fix
2 parents 6262a4a + b2ea525 commit 84c35a9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

projects/igniteui-angular/src/lib/drop-down/drop-down.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -601,10 +601,10 @@ export class IgxDropDownItemNavigationDirective {
601601
@HostListener('keydown', ['$event'])
602602
handleKeyDown(event: KeyboardEvent) {
603603
if (event) {
604-
const key = event.code ? event.code.toLowerCase() : event.key.toLowerCase();
604+
const key = event.key.toLowerCase();
605605
if (!this.target.collapsed) { // If dropdown is opened
606-
const navKeys = ['esc', 'escape', 'enter', 'tab', 'space', 'spacebar',
607-
'arrowup', 'up', 'arrowdown', 'down', 'home', 'end'];
606+
const navKeys = ['esc', 'escape', 'enter', 'tab', 'space', 'spacebar', ' ',
607+
'arrowup', 'up', 'arrowdown', 'down', 'home', 'end'];
608608
if (navKeys.indexOf(key) === -1) { // If key has appropriate function in DD
609609
return;
610610
}
@@ -624,6 +624,7 @@ export class IgxDropDownItemNavigationDirective {
624624
break;
625625
case 'space':
626626
case 'spacebar':
627+
case ' ':
627628
this.onSpaceKeyDown(event);
628629
break;
629630
case 'arrowup':

0 commit comments

Comments
 (0)