Changeset 165477 in webkit


Ignore:
Timestamp:
Mar 12, 2014 10:19:33 AM (10 years ago)
Author:
ap@apple.com
Message:

REGRESSION (r165356): [Mac] Multi-part key bindings don't work
https://bugs.webkit.org/show_bug.cgi?id=130100

Reviewed by Darin Adler.

Restore the previous behavior, where we only interpreted keydowns (including those
coming through performKeyEquivalent).

In the future, we might send all events to input methods, but not to key bindings.

  • UIProcess/API/mac/WKView.mm:

(-[WKView keyUp:]):
(-[WKView flagsChanged:]):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r165454 r165477  
     12014-03-11  Alexey Proskuryakov  <ap@apple.com>
     2
     3        REGRESSION (r165356): [Mac] Multi-part key bindings don't work
     4        https://bugs.webkit.org/show_bug.cgi?id=130100
     5
     6        Reviewed by Darin Adler.
     7
     8        Restore the previous behavior, where we only interpreted keydowns (including those
     9        coming through performKeyEquivalent).
     10
     11        In the future, we might send all events to input methods, but not to key bindings.
     12
     13        * UIProcess/API/mac/WKView.mm:
     14        (-[WKView keyUp:]):
     15        (-[WKView flagsChanged:]):
     16
    1172014-03-11  Beth Dakin  <bdakin@apple.com>
    218
  • trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm

    r165356 r165477  
    13351335{
    13361336    LOG(TextInput, "keyUp:%p %@", theEvent, theEvent);
    1337 
    1338     Vector<KeypressCommand> commands;
    1339     BOOL handledByInputMethod = [self _interpretKeyEvent:theEvent savingCommandsTo:commands];
    1340 
    1341     _data->_page->handleKeyboardEvent(NativeWebKeyboardEvent(theEvent, handledByInputMethod, commands));
     1337    // We don't interpret the keyUp event, as this breaks key bindings (see <https://bugs.webkit.org/show_bug.cgi?id=130100>).
     1338    _data->_page->handleKeyboardEvent(NativeWebKeyboardEvent(theEvent, false, Vector<KeypressCommand>()));
    13421339}
    13431340
     
    14411438        return;
    14421439
    1443     Vector<KeypressCommand> commands;
    1444     BOOL handledByInputMethod = [self _interpretKeyEvent:theEvent savingCommandsTo:commands];
    1445 
    1446     _data->_page->handleKeyboardEvent(NativeWebKeyboardEvent(theEvent, handledByInputMethod, commands));
     1440    _data->_page->handleKeyboardEvent(NativeWebKeyboardEvent(theEvent, false, Vector<KeypressCommand>()));
    14471441}
    14481442
Note: See TracChangeset for help on using the changeset viewer.