[Scummvm-git-logs] scummvm master -> 82e8bc43e60ce5908097d62be1b2fbb59c4679e8

digitall dgturner at iee.org
Fri Aug 24 00:34:45 CEST 2018


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
82e8bc43e6 IOS: Fix Arrow Key Capture in TextInputHandler.


Commit: 82e8bc43e60ce5908097d62be1b2fbb59c4679e8
    https://github.com/scummvm/scummvm/commit/82e8bc43e60ce5908097d62be1b2fbb59c4679e8
Author: Michael Zinn (michael.zinn at bregalad.de)
Date: 2018-08-23T23:42:52+01:00

Commit Message:
IOS: Fix Arrow Key Capture in TextInputHandler.

This should fix these working from external keyboards i.e. IPad Pro and
other sources as well.

This is presumably what the original author intended.

Changed paths:
    backends/platform/ios7/ios7_keyboard.mm


diff --git a/backends/platform/ios7/ios7_keyboard.mm b/backends/platform/ios7/ios7_keyboard.mm
index 98696d9..ff084a1 100644
--- a/backends/platform/ios7/ios7_keyboard.mm
+++ b/backends/platform/ios7/ios7_keyboard.mm
@@ -53,19 +53,6 @@
 	return self;
 }
 
- at end
-
-
- at implementation SoftKeyboard
-
-- (id)initWithFrame:(CGRect)frame {
-	self = [super initWithFrame:frame];
-	inputDelegate = nil;
-	inputView = [[TextInputHandler alloc] initWithKeyboard:self];
-	inputView.delegate = self;
-	return self;
-}
-
 - (NSArray *)keyCommands {
 	UIKeyCommand *upArrow = [UIKeyCommand keyCommandWithInput: UIKeyInputUpArrow modifierFlags: 0 action: @selector(upArrow:)];
 	UIKeyCommand *downArrow = [UIKeyCommand keyCommandWithInput: UIKeyInputDownArrow modifierFlags: 0 action: @selector(downArrow:)];
@@ -75,19 +62,32 @@
 }
 
 - (void) upArrow: (UIKeyCommand *) keyCommand {
-	[self handleKeyPress:273];
+	[softKeyboard handleKeyPress:273];
 }
 
 - (void) downArrow: (UIKeyCommand *) keyCommand {
-	[self handleKeyPress:274];
+	[softKeyboard handleKeyPress:274];
 }
 
 - (void) leftArrow: (UIKeyCommand *) keyCommand {
-	[self handleKeyPress:276];
+	[softKeyboard handleKeyPress:276];
 }
 
 - (void) rightArrow: (UIKeyCommand *) keyCommand {
-	[self handleKeyPress:275];
+	[softKeyboard handleKeyPress:275];
+}
+
+ at end
+
+
+ at implementation SoftKeyboard
+
+- (id)initWithFrame:(CGRect)frame {
+	self = [super initWithFrame:frame];
+	inputDelegate = nil;
+	inputView = [[TextInputHandler alloc] initWithKeyboard:self];
+	inputView.delegate = self;
+	return self;
 }
 
 - (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text {





More information about the Scummvm-git-logs mailing list