react-native-macos 0.68.56 → 0.68.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Lists/VirtualizedList.js +13 -1
- package/React/Base/RCTVersion.m +1 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/package.json +1 -1
- package/template/package.json +1 -1
|
@@ -1331,9 +1331,21 @@ class VirtualizedList extends React.PureComponent<Props, State> {
|
|
|
1331
1331
|
const preferredScrollerStyleDidChangeHandler =
|
|
1332
1332
|
this.props.onPreferredScrollerStyleDidChange;
|
|
1333
1333
|
|
|
1334
|
+
const isFirstRowSelected = this.state.selectedRowIndex === this.state.first;
|
|
1335
|
+
const isLastRowSelected = this.state.selectedRowIndex === this.state.last;
|
|
1336
|
+
|
|
1337
|
+
// Don't pass in ArrowUp/ArrowDown at the top/bottom of the list so that keyboard event can bubble
|
|
1338
|
+
let _validKeysDown = ['Home', 'End'];
|
|
1339
|
+
if (!isFirstRowSelected) {
|
|
1340
|
+
_validKeysDown.push('ArrowUp');
|
|
1341
|
+
}
|
|
1342
|
+
if (!isLastRowSelected) {
|
|
1343
|
+
_validKeysDown.push('ArrowDown');
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1334
1346
|
const keyboardNavigationProps = {
|
|
1335
1347
|
focusable: true,
|
|
1336
|
-
validKeysDown:
|
|
1348
|
+
validKeysDown: _validKeysDown,
|
|
1337
1349
|
onKeyDown: this._handleKeyDown,
|
|
1338
1350
|
};
|
|
1339
1351
|
// ]TODO(macOS GH#774)
|
package/React/Base/RCTVersion.m
CHANGED
package/package.json
CHANGED