diff --git a/.gitignore b/.gitignore index 9bea433..b5713fd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ .DS_Store + +*.meta diff --git a/Android~/UnityMobileInput/.gitignore b/Android~/UnityMobileInput/.gitignore deleted file mode 100644 index 39fb081..0000000 --- a/Android~/UnityMobileInput/.gitignore +++ /dev/null @@ -1,9 +0,0 @@ -*.iml -.gradle -/local.properties -/.idea/workspace.xml -/.idea/libraries -.DS_Store -/build -/captures -.externalNativeBuild diff --git a/Android~/UnityMobileInput/app/.gitignore b/Android~/UnityMobileInput/app/.gitignore deleted file mode 100644 index 796b96d..0000000 --- a/Android~/UnityMobileInput/app/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/build diff --git a/Android~/UnityMobileInput/common/.gitignore b/Android~/UnityMobileInput/common/.gitignore deleted file mode 100644 index 796b96d..0000000 --- a/Android~/UnityMobileInput/common/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/build diff --git a/Android~/UnityMobileInput/mobileinput/.gitignore b/Android~/UnityMobileInput/mobileinput/.gitignore deleted file mode 100644 index 796b96d..0000000 --- a/Android~/UnityMobileInput/mobileinput/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/build diff --git a/Plugins/iOS/MobileInput.mm b/Plugins/iOS/MobileInput.mm index f624061..f6d6283 100644 --- a/Plugins/iOS/MobileInput.mm +++ b/Plugins/iOS/MobileInput.mm @@ -209,8 +209,8 @@ - (id)initWith:(UIViewController *)controller andTag:(int)idInput { if (self = [super init]) { viewController = controller; inputId = idInput; - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil]; - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillHide:) name:UIKeyboardWillHideNotification object:nil]; + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardDidShow:) name:UIKeyboardDidShowNotification object:nil]; + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardDidHide:) name:UIKeyboardDidHideNotification object:nil]; } return self; } @@ -584,7 +584,7 @@ - (void)textFieldDidChange:(UITextField *)theTextField { [self onTextChange:theTextField.text]; } -- (void)keyboardWillShow:(NSNotification *)notification { +- (void)keyboardDidShow:(NSNotification *)notification { if (![editView isFirstResponder]) { return; } @@ -600,7 +600,7 @@ - (void)keyboardWillShow:(NSNotification *)notification { [self sendData:msg]; } -- (void)keyboardWillHide:(NSNotification *)notification { +- (void)keyboardDidHide:(NSNotification *)notification { NSMutableDictionary *msg = [[NSMutableDictionary alloc] init]; [msg setValue:KEYBOARD_ACTION forKey:@"msg"]; [msg setValue:[NSNumber numberWithBool:NO] forKey:@"show"];