File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/react-native/Libraries/Components/Pressable Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 } ;
You can’t perform that action at this time.
0 commit comments