Skip to content

Commit

Permalink
Fix access shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Jul 22, 2021
1 parent bd596fc commit 9f0d7a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/keycodes/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 9f0d7a0

Please sign in to comment.