aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorD G Turner2018-07-29 02:55:48 +0100
committerD G Turner2018-07-29 02:55:48 +0100
commitf353e466df2175f10e4328bce3f6a44e295ba305 (patch)
treef7fa9d4e0acf3bc34eedec2a23ecf45ff6bf9d74 /backends
parent51351111d48ae6f8c8d74e04a30042521285b4b7 (diff)
downloadscummvm-rg350-f353e466df2175f10e4328bce3f6a44e295ba305.tar.gz
scummvm-rg350-f353e466df2175f10e4328bce3f6a44e295ba305.tar.bz2
scummvm-rg350-f353e466df2175f10e4328bce3f6a44e295ba305.zip
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.
Diffstat (limited to 'backends')
-rw-r--r--backends/platform/ios7/ios7_keyboard.mm15
1 files changed, 7 insertions, 8 deletions
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 {