diff options
-rw-r--r-- | backends/platform/ios7/ios7_keyboard.mm | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/backends/platform/ios7/ios7_keyboard.mm b/backends/platform/ios7/ios7_keyboard.mm index 98696d9497..ff084a1a9e 100644 --- a/backends/platform/ios7/ios7_keyboard.mm +++ b/backends/platform/ios7/ios7_keyboard.mm @@ -53,19 +53,6 @@ return self; } -@end - - -@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]; +} + +@end + + +@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 { |