react-native-macos 0.74.8 → 0.74.10
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/Text/TextInput/Multiline/RCTUITextView.mm +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/CoreModules/RCTDevLoadingView.mm +6 -2
- 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
|
@@ -577,7 +577,7 @@ static RCTUIColor *defaultPlaceholderColor(void) // [macOS]
|
|
|
577
577
|
}
|
|
578
578
|
#else // [macOS
|
|
579
579
|
- (BOOL)performKeyEquivalent:(NSEvent *)event {
|
|
580
|
-
if (!self.hasMarkedText && ![self.textInputDelegate textInputShouldHandleKeyEvent:event]) {
|
|
580
|
+
if (self.window.firstResponder == self && !self.hasMarkedText && ![self.textInputDelegate textInputShouldHandleKeyEvent:event]) {
|
|
581
581
|
return YES;
|
|
582
582
|
}
|
|
583
583
|
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -142,10 +142,10 @@ RCT_EXPORT_MODULE()
|
|
|
142
142
|
styleMask:NSWindowStyleMaskBorderless
|
|
143
143
|
backing:NSBackingStoreBuffered
|
|
144
144
|
defer:YES];
|
|
145
|
-
self->_window.releasedWhenClosed = NO;
|
|
146
145
|
self->_window.backgroundColor = [NSColor clearColor];
|
|
147
146
|
|
|
148
147
|
NSTextField *label = [[NSTextField alloc] initWithFrame:self->_window.contentView.bounds];
|
|
148
|
+
label.font = [NSFont monospacedDigitSystemFontOfSize:12.0 weight:NSFontWeightRegular];
|
|
149
149
|
label.alignment = NSTextAlignmentCenter;
|
|
150
150
|
label.bezeled = NO;
|
|
151
151
|
label.editable = NO;
|
|
@@ -169,7 +169,11 @@ RCT_EXPORT_MODULE()
|
|
|
169
169
|
self->_label.textColor = color;
|
|
170
170
|
|
|
171
171
|
self->_label.backgroundColor = backgroundColor;
|
|
172
|
-
[RCTKeyWindow()
|
|
172
|
+
if (![[RCTKeyWindow() sheets] doesContain:self->_window]) {
|
|
173
|
+
[RCTKeyWindow() beginSheet:self->_window completionHandler:^(NSModalResponse returnCode) {
|
|
174
|
+
[self->_window orderOut:self];
|
|
175
|
+
}];
|
|
176
|
+
}
|
|
173
177
|
#endif // macOS]
|
|
174
178
|
});
|
|
175
179
|
|