react-native-macos 0.66.62 → 0.66.65
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/Singleline/RCTUITextField.m +4 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/Views/RCTView.m +3 -0
- 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
|
@@ -105,7 +105,6 @@
|
|
|
105
105
|
#if TARGET_OS_OSX // [TODO(macOS GH#774)
|
|
106
106
|
[self setBordered:NO];
|
|
107
107
|
[self setAllowsEditingTextAttributes:YES];
|
|
108
|
-
[self setAccessibilityRole:NSAccessibilityTextFieldRole];
|
|
109
108
|
[self setBackgroundColor:[NSColor clearColor]];
|
|
110
109
|
#endif // ]TODO(macOS GH#774)
|
|
111
110
|
|
|
@@ -127,7 +126,11 @@
|
|
|
127
126
|
|
|
128
127
|
#pragma mark - Accessibility
|
|
129
128
|
|
|
129
|
+
#if !TARGET_OS_OSX // [TODO(macOS GH#774)
|
|
130
130
|
- (void)setIsAccessibilityElement:(BOOL)isAccessibilityElement
|
|
131
|
+
#else
|
|
132
|
+
- (void)setAccessibilityElement:(BOOL)isAccessibilityElement
|
|
133
|
+
#endif // ]TODO(macOS GH#774)
|
|
131
134
|
{
|
|
132
135
|
// UITextField is accessible by default (some nested views are) and disabling that is not supported.
|
|
133
136
|
// On iOS accessible elements cannot be nested, therefore enabling accessibility for some container view
|
package/React/Base/RCTVersion.m
CHANGED
package/React/Views/RCTView.m
CHANGED
|
@@ -1620,6 +1620,9 @@ NSString* const downArrowPressKey = @"ArrowDown";
|
|
|
1620
1620
|
BOOL tabKeyPressed = NO;
|
|
1621
1621
|
BOOL escapeKeyPressed = NO;
|
|
1622
1622
|
NSString *key = event.charactersIgnoringModifiers;
|
|
1623
|
+
if ([key length] == 0) {
|
|
1624
|
+
return nil;
|
|
1625
|
+
}
|
|
1623
1626
|
unichar const code = [key characterAtIndex:0];
|
|
1624
1627
|
|
|
1625
1628
|
// detect arrow key presses
|
package/package.json
CHANGED