Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fcafa460 authored by Cary Clark's avatar Cary Clark
Browse files

fix multiple text areas, and text areas without focus rings

If the typed key doesn't go with the current text area, clear
the focus so the key won't return to that text area. However,
don't clear the focus if it is already off the old text area.

fixes http://b/issue?id=2201049
parent 2a2805b7
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -138,7 +138,10 @@ import java.util.ArrayList;
        }
        if (!isArrowKey && !mOkayForFocusNotToMatch
                && mWebView.nativeFocusNodePointer() != mNodePointer) {
            if (mWebView.nativeCursorNodePointer() == mNodePointer) {
                // remove cursor so character doesn't go back to this view
                mWebView.nativeClearCursor();
            }
            // Do not call remove() here, which hides the soft keyboard.  If
            // the soft keyboard is being displayed, the user will still want
            // it there.