mirror of
https://github.com/ogoguel/activegs-ios.git
synced 2025-08-05 10:25:20 +00:00
fixed crash when hardware keyboard is connected and device is rotated or input method is changed; adding text field input accessory view only if software keyboard is shown
This commit is contained in:
@@ -2183,8 +2183,10 @@ int x_adb_get_keypad_y()
|
||||
|
||||
debug_printf("setInputAccessoryView:accessView");
|
||||
// IOS8
|
||||
[self.accessView removeFromSuperview];
|
||||
[self.textField setInputAccessoryView:self.accessView];
|
||||
if ( !isHardwareKeyboard() ) {
|
||||
[self.accessView removeFromSuperview];
|
||||
[self.textField setInputAccessoryView:self.accessView];
|
||||
}
|
||||
|
||||
[self.textField becomeFirstResponder];
|
||||
}
|
||||
|
Reference in New Issue
Block a user