add kivy & sdl keyboard hide support work fine
This commit is contained in:
parent
ca3531c700
commit
6ac685ab5f
13 changed files with 10 additions and 2 deletions
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,2 +1,2 @@
|
||||||
6109
|
6110
|
||||||
commit
|
commit
|
||||||
|
|
Binary file not shown.
|
@ -60,6 +60,7 @@
|
||||||
- (void)hideKeyboard;
|
- (void)hideKeyboard;
|
||||||
- (void)initializeKeyboard;
|
- (void)initializeKeyboard;
|
||||||
@property (readonly) BOOL keyboardVisible;
|
@property (readonly) BOOL keyboardVisible;
|
||||||
|
- (void)keyboardDidHide:(NSNotification *)notification;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -248,7 +248,14 @@
|
||||||
/* add the UITextField (hidden) to our view */
|
/* add the UITextField (hidden) to our view */
|
||||||
[self addSubview: textField];
|
[self addSubview: textField];
|
||||||
[textField release];
|
[textField release];
|
||||||
|
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardDidHide:) name:UIKeyboardDidHideNotification object:nil];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
- (void)keyboardDidHide:(NSNotification *)notification
|
||||||
|
{
|
||||||
|
keyboardVisible = NO;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* reveal onscreen virtual keyboard */
|
/* reveal onscreen virtual keyboard */
|
||||||
- (void)showKeyboard
|
- (void)showKeyboard
|
||||||
|
|
Loading…
Reference in a new issue