From f353e466df2175f10e4328bce3f6a44e295ba305 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Sun, 29 Jul 2018 02:55:48 +0100 Subject: IOS: Fix Build due to Smartkeyboard on IPad Pro Patch. The code provided for Smartkeyboard on IPad Pro seems to be broken, so am making minor changes to try to fix this. The following should still function, but this will need testing by an IOS user with this hardware, if it compiles. --- backends/platform/ios7/ios7_keyboard.mm | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'backends/platform/ios7') diff --git a/backends/platform/ios7/ios7_keyboard.mm b/backends/platform/ios7/ios7_keyboard.mm index f6d1b59eaf..98696d9497 100644 --- a/backends/platform/ios7/ios7_keyboard.mm +++ b/backends/platform/ios7/ios7_keyboard.mm @@ -46,9 +46,9 @@ [self setAutocorrectionType:UITextAutocorrectionTypeNo]; [self setAutocapitalizationType:UITextAutocapitalizationTypeNone]; [self setEnablesReturnKeyAutomatically:NO]; - UITextInputAssistantItem* item = [self inputAssistantItem]; - item.leadingBarButtonGroups = @[]; - item.trailingBarButtonGroups = @[]; + //UITextInputAssistantItem* item = [self inputAssistantItem]; + //item.leadingBarButtonGroups = @[]; + //item.trailingBarButtonGroups = @[]; return self; } @@ -75,20 +75,19 @@ } - (void) upArrow: (UIKeyCommand *) keyCommand { -// [self resignFirstResponder]; - [softKeyboard handleKeyPress:273]; + [self handleKeyPress:273]; } - (void) downArrow: (UIKeyCommand *) keyCommand { - [softKeyboard handleKeyPress:274]; + [self handleKeyPress:274]; } - (void) leftArrow: (UIKeyCommand *) keyCommand { - [softKeyboard handleKeyPress:276]; + [self handleKeyPress:276]; } - (void) rightArrow: (UIKeyCommand *) keyCommand { - [softKeyboard handleKeyPress:275]; + [self handleKeyPress:275]; } - (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text { -- cgit v1.2.3