Skip to content

Commit

Permalink
Override system behavior for arrow keys on iOS 15
Browse files Browse the repository at this point in the history
Fixes #1708
  • Loading branch information
tbodt committed Feb 13, 2022
1 parent 40f3ef4 commit 43144e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/TerminalView.m
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,9 @@ - (void)addKey:(NSString *)key withModifiers:(UIKeyModifierFlags)modifiers {
UIKeyCommand *command = [UIKeyCommand keyCommandWithInput:key
modifierFlags:modifiers
action:@selector(handleKeyCommand:)];
if (@available(iOS 15, *)) {
command.wantsPriorityOverSystemBehavior = YES;
}
[_keyCommands addObject:command];
}

Expand Down

0 comments on commit 43144e3

Please sign in to comment.