react-native-macos 0.75.32 → 0.75.33
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/Components/TextInput/TextInputState.js +5 -1
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/Views/RCTViewKeyboardEvent.m +24 -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
|
@@ -105,7 +105,11 @@ function focusTextInput(textField: ?ComponentRef) {
|
|
|
105
105
|
|
|
106
106
|
if (textField != null) {
|
|
107
107
|
const fieldCanBeFocused =
|
|
108
|
-
currentlyFocusedInputRef
|
|
108
|
+
// [macOS currentlyFocusedInputRef does not account for the fact that any arbritrary view can
|
|
109
|
+
// recieve focus on desktop. https://github.com/facebook/react-native/pull/52472/ fixes this,
|
|
110
|
+
// disable the check for now
|
|
111
|
+
// currentlyFocusedInputRef !== textField &&
|
|
112
|
+
// macOS]
|
|
109
113
|
// $FlowFixMe - `currentProps` is missing in `NativeMethods`
|
|
110
114
|
textField.currentProps?.editable !== false;
|
|
111
115
|
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -63,6 +63,30 @@
|
|
|
63
63
|
return @"PageUp";
|
|
64
64
|
} else if (code == NSPageDownFunctionKey) {
|
|
65
65
|
return @"PageDown";
|
|
66
|
+
} else if (code == NSF1FunctionKey) {
|
|
67
|
+
return @"F1";
|
|
68
|
+
} else if (code == NSF2FunctionKey) {
|
|
69
|
+
return @"F2";
|
|
70
|
+
} else if (code == NSF3FunctionKey) {
|
|
71
|
+
return @"F3";
|
|
72
|
+
} else if (code == NSF4FunctionKey) {
|
|
73
|
+
return @"F4";
|
|
74
|
+
} else if (code == NSF5FunctionKey) {
|
|
75
|
+
return @"F5";
|
|
76
|
+
} else if (code == NSF6FunctionKey) {
|
|
77
|
+
return @"F6";
|
|
78
|
+
} else if (code == NSF7FunctionKey) {
|
|
79
|
+
return @"F7";
|
|
80
|
+
} else if (code == NSF8FunctionKey) {
|
|
81
|
+
return @"F8";
|
|
82
|
+
} else if (code == NSF9FunctionKey) {
|
|
83
|
+
return @"F9";
|
|
84
|
+
} else if (code == NSF10FunctionKey) {
|
|
85
|
+
return @"F10";
|
|
86
|
+
} else if (code == NSF11FunctionKey) {
|
|
87
|
+
return @"F11";
|
|
88
|
+
} else if (code == NSF12FunctionKey) {
|
|
89
|
+
return @"F12";
|
|
66
90
|
}
|
|
67
91
|
|
|
68
92
|
return key;
|