IOS7: Add a tab key to the keyboard accessory view

This commit is contained in:
Thierry Crozat 2019-06-30 01:28:21 +01:00
parent 25ff69c250
commit bf92167007

View file

@ -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];
}