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:
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user