⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 169091 in webkit


Ignore:
Timestamp:
May 19, 2014, 6:09:37 PM (12 years ago)
Author:
enrica@apple.com
Message:

WK2 iOS: Pressing the form navigation button causes the keyboard to be dismissed.
​https://bugs.webkit.org/show_bug.cgi?id=133100
<rdar://problem/16808673>

Reviewed by Benjamin Poulain.

The call to focusNextAssistedNode is the result of a user action, since
it is called when the user pressed the form navigation buttons.
Therefore we must set m_userIsInteracting to true before changing the focus
to make sure the focus change is honored.

  • WebProcess/WebPage/ios/WebPageIOS.mm:

(WebKit::WebPage::focusNextAssistedNode):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r169087 r169091  
     12014-05-19  Enrica Casucci  <enrica@apple.com>
     2
     3        WK2 iOS: Pressing the form navigation button causes the keyboard to be dismissed.
     4        https://bugs.webkit.org/show_bug.cgi?id=133100
     5        <rdar://problem/16808673>
     6
     7        Reviewed by Benjamin Poulain.
     8
     9        The call to focusNextAssistedNode is the result of a user action, since
     10        it is called when the user pressed the form navigation buttons.
     11        Therefore we must set m_userIsInteracting to true before changing the focus
     12        to make sure the focus change is honored.
     13
     14        * WebProcess/WebPage/ios/WebPageIOS.mm:
     15        (WebKit::WebPage::focusNextAssistedNode):
     16
    1172014-05-19  Beth Dakin  <bdakin@apple.com>
    218
  • trunk/Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm

    r169068 r169091  
    17741774{
    17751775    Element* nextElement = nextFocusableElement(m_assistedNode.get(), m_page.get(), isForward);
     1776    m_userIsInteracting = true;
    17761777    if (nextElement)
    17771778        nextElement->focus();
     1779    m_userIsInteracting = false;
    17781780}
    17791781
Note: See TracChangeset for help on using the changeset viewer.