diff --git a/packages/keycodes/src/index.js b/packages/keycodes/src/index.js index 8862c4c09ffa0e..12ba73acdbf7a9 100644 --- a/packages/keycodes/src/index.js +++ b/packages/keycodes/src/index.js @@ -372,6 +372,18 @@ export const isKeyboardEvent = mapValues( modifiers, ( getModifiers ) => { key = String.fromCharCode( event.keyCode ).toLowerCase(); } + // Replace some characters to match the key indicated + // by the shortcut on Windows. + if ( ! _isApple() ) { + if ( + event.shiftKey && + character.length === 1 && + event.code === 'Comma' + ) { + key = ','; + } + } + // For backwards compatibility. if ( character === 'del' ) { character = 'delete';