From 9f0d7a0aeb249851d3265967f797a005aad858ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ella=20van=C2=A0Durpe?= Date: Mon, 19 Jul 2021 01:36:34 +0300 Subject: [PATCH] Fix access shortcut --- packages/keycodes/src/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/keycodes/src/index.js b/packages/keycodes/src/index.js index 9c6110245a8389..0cad9264bcf146 100644 --- a/packages/keycodes/src/index.js +++ b/packages/keycodes/src/index.js @@ -326,7 +326,11 @@ export const isKeyboardEvent = mapValues( modifiers, ( getModifiers ) => { return false; } - const key = event.key.toLowerCase(); + let key = event.key.toLowerCase(); + + if ( includes( mods, ALT ) ) { + key = String.fromCharCode( event.keyCode ).toLowerCase(); + } if ( ! character ) { return includes( mods, key );