fix android can't input unicode characters

fix hide soft keyboard by press 'back' button,
 then click current focus text edit/line edit control,
 soft keyboard won't show again

add features:
  press enter key with line edit control will hide soft keyboard
This commit is contained in:
sanikoyes
2014-03-13 16:58:03 +08:00
parent 81757d2e97
commit 51429bd8d6
7 changed files with 326 additions and 11 deletions

View File

@ -79,6 +79,9 @@ void LineEdit::_input_event(InputEvent p_event) {
}
selection.creating=false;
selection.doubleclick=false;
// notify to show soft keyboard
notification(NOTIFICATION_FOCUS_ENTER);
}
update();
@ -208,6 +211,8 @@ void LineEdit::_input_event(InputEvent p_event) {
case KEY_RETURN: {
emit_signal( "text_entered",text );
// notify to hide soft keyboard
notification(NOTIFICATION_FOCUS_EXIT);
return;
} break;