We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06219a4 commit d113e1dCopy full SHA for d113e1d
packages/rn-tester/js/examples/KeyboardEventsExample/KeyboardEventsExample.js
@@ -25,9 +25,6 @@ import {
25
26
function formatKeyEvent(event: any) {
27
const modifiers = [];
28
- if (event.metaKey) {
29
- modifiers.push('Cmd');
30
- }
31
if (event.ctrlKey) {
32
modifiers.push('Ctrl');
33
}
@@ -37,6 +34,9 @@ function formatKeyEvent(event: any) {
37
34
if (event.shiftKey) {
38
35
modifiers.push('Shift');
39
36
+ if (event.metaKey) {
+ modifiers.push('Meta');
+ }
40
41
const modifierPrefix = modifiers.length > 0 ? `${modifiers.join('+')}+` : '';
42
return `${modifierPrefix}${event.key}`;
0 commit comments