aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/ios7/ios7_keyboard.mm
diff options
context:
space:
mode:
authorThierry Crozat2019-06-30 01:28:21 +0100
committerThierry Crozat2019-06-30 12:36:43 +0100
commitbf921670077d5f665dff4e87410d53ed3eb90610 (patch)
tree7430609259f3f4df2d443911d3fdeba77ef6e86d /backends/platform/ios7/ios7_keyboard.mm
parent25ff69c250f603d2b6cee6fb1437e859c9ab37a4 (diff)
downloadscummvm-rg350-bf921670077d5f665dff4e87410d53ed3eb90610.tar.gz
scummvm-rg350-bf921670077d5f665dff4e87410d53ed3eb90610.tar.bz2
scummvm-rg350-bf921670077d5f665dff4e87410d53ed3eb90610.zip
IOS7: Add a tab key to the keyboard accessory view
Diffstat (limited to 'backends/platform/ios7/ios7_keyboard.mm')
-rw-r--r--backends/platform/ios7/ios7_keyboard.mm6
1 files changed, 6 insertions, 0 deletions
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];
}