Skip to content

Commit d9393fc

Browse files
committed
move macos keys to end
1 parent 310ca14 commit d9393fc

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

packages/react-native/Libraries/Types/CoreEventTypes.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,13 +221,10 @@ export interface NativePointerEvent extends NativeMouseEvent {
221221
export type PointerEvent = NativeSyntheticEvent<NativePointerEvent>;
222222

223223
export type NativeTouchEvent = $ReadOnly<{
224-
altKey?: ?boolean, // [macOS]
225-
button?: ?number, // [macOS]
226224
/**
227225
* Array of all touch events that have changed since the last event
228226
*/
229227
changedTouches: $ReadOnlyArray<NativeTouchEvent>,
230-
ctrlKey?: ?boolean, // [macOS]
231228
/**
232229
* 3D Touch reported force
233230
* @platform ios
@@ -245,7 +242,6 @@ export type NativeTouchEvent = $ReadOnly<{
245242
* The Y position of the touch, relative to the element
246243
*/
247244
locationY: number,
248-
metaKey?: ?boolean, // [macOS]
249245
/**
250246
* The X position of the touch, relative to the screen
251247
*/
@@ -254,7 +250,7 @@ export type NativeTouchEvent = $ReadOnly<{
254250
* The Y position of the touch, relative to the screen
255251
*/
256252
pageY: number,
257-
shiftKey?: ?boolean, // [macOS]
253+
258254
/**
259255
* The node id of the element receiving the touch event
260256
*/
@@ -267,6 +263,11 @@ export type NativeTouchEvent = $ReadOnly<{
267263
* Array of all current touches on the screen
268264
*/
269265
touches: $ReadOnlyArray<NativeTouchEvent>,
266+
button?: ?number, // [macOS]
267+
altKey?: ?boolean, // [macOS]
268+
ctrlKey?: ?boolean, // [macOS]
269+
shiftKey?: ?boolean, // [macOS]
270+
metaKey?: ?boolean, // [macOS]
270271
}>;
271272

272273
export type GestureResponderEvent = ResponderSyntheticEvent<NativeTouchEvent>;

0 commit comments

Comments
 (0)