Permalink
Browse files

add kivy & sdl keyboard hide support work fine

  • Loading branch information...
1 parent ca3531c commit 6ac685ab5f42eb0fb9296c3dcc5a07df8314b323 @splanquart committed Dec 25, 2011
View
Binary file not shown.
@@ -1,2 +1,2 @@
-disable auto hide keyboard when use press enter
+get notification from uikit to known is keyboard is hide or not
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
View
Binary file not shown.
View
@@ -1,2 +1,2 @@
-6109
+6110
commit
Binary file not shown.
@@ -60,6 +60,7 @@
- (void)hideKeyboard;
- (void)initializeKeyboard;
@property (readonly) BOOL keyboardVisible;
+- (void)keyboardDidHide:(NSNotification *)notification;
#endif
@end
@@ -248,7 +248,14 @@ - (void)initializeKeyboard
/* add the UITextField (hidden) to our view */
[self addSubview: textField];
[textField release];
+ [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardDidHide:) name:UIKeyboardDidHideNotification object:nil];
+
}
+- (void)keyboardDidHide:(NSNotification *)notification
+{
+ keyboardVisible = NO;
+}
+
/* reveal onscreen virtual keyboard */
- (void)showKeyboard

0 comments on commit 6ac685a

Please sign in to comment.