Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

[DRAFT] Calling onConnectionClosed when the input element is blurred.#13344

Closed
nturgut wants to merge 2 commits intoflutter:masterfrom
nturgut:clear_client_engine
Closed

[DRAFT] Calling onConnectionClosed when the input element is blurred.#13344
nturgut wants to merge 2 commits intoflutter:masterfrom
nturgut:clear_client_engine

Conversation

@nturgut
Copy link
Contributor

@nturgut nturgut commented Oct 25, 2019

Showing the usage of framework PR: flutter/flutter#43466

Tests needs to be added.

Fixes flutter/flutter#43034
combined with flutter/flutter#43466

Copy link
Contributor

@mdebbar mdebbar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks for making this happen.

(I know this is still in draft mode, so I'll wait for test changes before approving)

@@ -293,14 +293,10 @@ class TextEditingElement {
// outside the editable box. Instead it provides an explicit "done" button,
// which is reported as "blur", so we must not reacquire focus when we see
// a "blur" event and let the keyboard disappear.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment isn't relevant anymore.

browserEngine == BrowserEngine.unknown) {
_subscriptions.add(domElement.onBlur.listen((_) {
if (isEnabled) {
_refocus();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there are some tests for the refocus behavior. They probably need to be updated or deleted.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I'll work on the tests later. I want to make sure the other part will me approved. Thanks for the pointers!

@cbracken cbracken added the Work in progress (WIP) Not ready (yet) for review! label Nov 4, 2019
@nturgut
Copy link
Contributor Author

nturgut commented Dec 16, 2019

I sent a new version of this PR: #14484

@nturgut nturgut closed this Dec 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes Work in progress (WIP) Not ready (yet) for review!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[web][Safari][mobile] Virtual Keyboard shifts the page up after browser closes/reopens

4 participants