From bf921670077d5f665dff4e87410d53ed3eb90610 Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Sun, 30 Jun 2019 01:28:21 +0100 Subject: IOS7: Add a tab key to the keyboard accessory view --- backends/platform/ios7/ios7_keyboard.mm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'backends') diff --git a/backends/platform/ios7/ios7_keyboard.mm b/backends/platform/ios7/ios7_keyboard.mm index 6b50252a44..069cbd1900 100644 --- a/backends/platform/ios7/ios7_keyboard.mm +++ b/backends/platform/ios7/ios7_keyboard.mm @@ -64,6 +64,8 @@ [[[UIBarButtonItem alloc] initWithTitle:@"\u2630" style:UIBarButtonItemStylePlain target:self action:@selector(mainMenuKey)] autorelease], // Escape key [[[UIBarButtonItem alloc] initWithTitle:@"Esc" style:UIBarButtonItemStylePlain target:self action:@selector(escapeKey)] autorelease], + // Tab key + [[[UIBarButtonItem alloc] initWithTitle:@"Tab" style:UIBarButtonItemStylePlain target:self action:@selector(tabKey)] autorelease], // Return key [[[UIBarButtonItem alloc] initWithTitle:@"\u23ce" style:UIBarButtonItemStylePlain target:self action:@selector(returnKey)] autorelease], // Function keys @@ -143,6 +145,10 @@ [softKeyboard handleKeyPress:Common::KEYCODE_ESCAPE]; } +- (void) tabKey { + [softKeyboard handleKeyPress:Common::KEYCODE_TAB]; +} + - (void) fn1Key { [softKeyboard handleKeyPress:Common::KEYCODE_F1]; } -- cgit v1.2.3