Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix access shortcut
  • Loading branch information
ellatrix committed Jul 22, 2021
commit 9f0d7a0aeb249851d3265967f797a005aad858ad
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