add kivy & sdl keyboard hide support work fine

This commit is contained in:
Stéphane Planquart 2011-12-25 14:09:45 +01:00
parent ca3531c700
commit 6ac685ab5f
13 changed files with 10 additions and 2 deletions

Binary file not shown.

View file

@ -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.

Binary file not shown.

View file

@ -1,2 +1,2 @@
6109
6110
commit

Binary file not shown.

View file

@ -60,6 +60,7 @@
- (void)hideKeyboard;
- (void)initializeKeyboard;
@property (readonly) BOOL keyboardVisible;
- (void)keyboardDidHide:(NSNotification *)notification;
#endif
@end

View file

@ -248,7 +248,14 @@
/* 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