diff --git a/js/misc/inputMethod.js b/js/misc/inputMethod.js index aabd280c8..d944c2978 100644 --- a/js/misc/inputMethod.js +++ b/js/misc/inputMethod.js @@ -188,6 +188,7 @@ export const InputMethod = GObject.registerClass({ vfunc_focus_in(focus) { this._currentFocus = focus; if (this._context) { + this.update(); this._context.focus_in(); this._emitRequestSurrounding(); } @@ -371,7 +372,6 @@ export const InputMethod = GObject.registerClass({ _fullReset() { this._context.set_content_type(0, 0); this._context.set_cursor_location(0, 0, 0, 0); - this._context.set_capabilities(0); this._context.reset(); }