Merge pull request #310 from NativeScript/focus

Fixed:  TextField and TextView do not show the soft keyboard when their ...
This commit is contained in:
Rossen Hristov
2015-04-23 12:10:09 +03:00

View File

@@ -109,6 +109,16 @@ export class EditableTextBase extends common.EditableTextBase {
}
}
public focus(): boolean {
var result = super.focus();
if (result && this._nativeView) {
this._imm.showSoftInput(this._nativeView, android.view.inputmethod.InputMethodManager.SHOW_IMPLICIT);
}
return result;
}
public _onTextPropertyChanged(data: dependencyObservable.PropertyChangeData) {
if (this._android) {
this.android.setText(data.newValue + "", android.widget.TextView.BufferType.EDITABLE);