Skip to content

Commit fd7eea2

Browse files
committed
fix space
1 parent 16b501f commit fd7eea2

File tree

1 file changed

+2
-2
lines changed
  • packages/react-native/Libraries/Components/Pressable

1 file changed

+2
-2
lines changed

packages/react-native/Libraries/Components/Pressable/Pressable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ function Pressable(
353353

354354
const accessibilityLabel = ariaLabel ?? props.accessibilityLabel;
355355

356-
const keyDownEvents = keyDownEvents ?? [{key: 'Space'}, {key: 'Enter'}];
356+
const _keyDownEvents = keyDownEvents ?? [{key: ' '}, {key: 'Enter'}];
357357

358358
const restPropsWithDefaults: React.ElementConfig<typeof View> = {
359359
...restProps,
@@ -370,7 +370,7 @@ function Pressable(
370370
// [macOS
371371
acceptsFirstMouse: acceptsFirstMouse !== false && !disabled,
372372
enableFocusRing: enableFocusRing !== false && !disabled,
373-
keyDownEvents,
373+
keyDownEvents: _keyDownEvents,
374374
mouseDownCanMoveWindow: false,
375375
// macOS]
376376
};

0 commit comments

Comments
 (0)