Skip to content

Commit

Permalink
Apply fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Nov 9, 2021
1 parent 028c89d commit c6c2c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/prefer-keyboard-event-key.js
Expand Up @@ -84,7 +84,7 @@ const fix = node => fixer => {
const isTestingEquality = operator === '==' || operator === '===';
const isRightValid = isTestingEquality && right.type === 'Literal' && typeof right.value === 'number';
// Either a meta key or a printable character
const keyCode = translateToKey[right.value] || String.fromCharCode(right.value);
const keyCode = translateToKey[right.value] || String.fromCodePoint(right.value);
// And if we recognize the `.keyCode`
if (!isRightValid || !keyCode) {
return;
Expand Down

0 comments on commit c6c2c0e

Please sign in to comment.