Skip to content

Commit ea19204

Browse files
authored
Textinput range fix (facebook#1296)
1 parent bc183b6 commit ea19204

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

React/Views/RCTView.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1596,6 +1596,9 @@ - (RCTViewKeyboardEvent*)keyboardEvent:(NSEvent*)event downPress:(BOOL)downPress
15961596
BOOL tabKeyPressed = NO;
15971597
BOOL escapeKeyPressed = NO;
15981598
NSString *key = event.charactersIgnoringModifiers;
1599+
if ([key length] == 0) {
1600+
return nil;
1601+
}
15991602
unichar const code = [key characterAtIndex:0];
16001603

16011604
// detect arrow key presses

0 commit comments

Comments
 (0)