From 83d809d239e4cb6ada193a231fce9149cca4afc5 Mon Sep 17 00:00:00 2001 From: piyush132000 Date: Wed, 16 Mar 2022 10:33:43 +0530 Subject: [PATCH] deprecated keys of KeyboardEvent removed from selectJs file --- src/components/select/select.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/select/select.js b/src/components/select/select.js index 7a023d771c..cdb3eab87a 100755 --- a/src/components/select/select.js +++ b/src/components/select/select.js @@ -696,7 +696,7 @@ function SelectMenuDirective($parse, $mdUtil, $mdConstant, $mdTheming) { * @param {KeyboardEvent} keyboardEvent */ function keyListener(keyboardEvent) { - if (keyboardEvent.keyCode === 13 || keyboardEvent.keyCode === 32) { + if (keyboardEvent.key.toLowerCase() === 'enter' || keyboardEvent.key.toLowerCase() === 'space') { clickListener(keyboardEvent); } }