Changeset 208969 in webkit


Ignore:
Timestamp:
Nov 22, 2016, 8:05:21 PM (9 years ago)
Author:
mitz@apple.com
Message:

[Mac] In Legacy WebKit, pressing an arrow key in editable content doesn’t hide the mouse cursor
https://bugs.webkit.org/show_bug.cgi?id=165036
<rdar://problem/5708580>

Reviewed by Alexey Proskuryakov.

  • WebView/WebHTMLView.mm:

(-[WebHTMLView performKeyEquivalent:]): Hide the cursor if WebCore handled the event,

similarly to what we do in -keyDown: and to what WKWebView does with all key events.

Location:
trunk/Source/WebKit/mac
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/mac/ChangeLog

    r208949 r208969  
     12016-11-22  Dan Bernstein  <mitz@apple.com>
     2
     3        [Mac] In Legacy WebKit, pressing an arrow key in editable content doesn’t hide the mouse cursor
     4        https://bugs.webkit.org/show_bug.cgi?id=165036
     5        <rdar://problem/5708580>
     6
     7        Reviewed by Alexey Proskuryakov.
     8
     9        * WebView/WebHTMLView.mm:
     10        (-[WebHTMLView performKeyEquivalent:]): Hide the cursor if WebCore handled the event,
     11          similarly to what we do in -keyDown: and to what WKWebView does with all key events.
     12
    1132016-11-21  Alex Christensen  <achristensen@webkit.org>
    214
  • trunk/Source/WebKit/mac/WebView/WebHTMLView.mm

    r208527 r208969  
    55305530            ret = frame->eventHandler().keyEvent(event);
    55315531
    5532     if (!ret)
     5532    if (ret)
     5533        [NSCursor setHiddenUntilMouseMoves:YES];
     5534    else
    55335535        ret = [self _handleStyleKeyEquivalent:event] || [super performKeyEquivalent:event];
    55345536
Note: See TracChangeset for help on using the changeset viewer.