react-native-macos 0.68.55 → 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/React/Views/RCTView.m +6 -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/Gemfile.lock +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/React/Views/RCTView.m
CHANGED
|
@@ -1431,9 +1431,14 @@ setBorderColor() setBorderColor(Top) setBorderColor(Right) setBorderColor(Bottom
|
|
|
1431
1431
|
}
|
|
1432
1432
|
}
|
|
1433
1433
|
|
|
1434
|
+
- (BOOL)needsPanelToBecomeKey {
|
|
1435
|
+
// We need to override this so that mouse clicks don't move keyboard focus on focusable views by default.
|
|
1436
|
+
return false;
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1434
1439
|
- (BOOL)acceptsFirstResponder
|
|
1435
1440
|
{
|
|
1436
|
-
|
|
1441
|
+
return [self focusable] || [super acceptsFirstResponder];
|
|
1437
1442
|
}
|
|
1438
1443
|
|
|
1439
1444
|
- (void)updateTrackingAreas
|
package/package.json
CHANGED
package/template/Gemfile.lock
CHANGED