In WebKit, [WebHTMLView _handleStyleKeyEquivalent] returned early if [WebHTMLView _canEdit] was false. We're missing this early return case in WebKit2, in [WKView _handleStyleKeyEquivalent] [WebHTMLView _canEdit] boils down to checking if the current selection is in an editable region. <rdar://problem/8980859>
Created attachment 82065 [details] patch
Comment on attachment 82065 [details] patch Looks good to me.
Comment on attachment 82065 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=82065&action=review > Source/WebKit2/UIProcess/API/mac/WKView.mm:992 > + if (!_data->_page->selectionState().isContentEditable) I think that longer term we might want this only if content is “richly” editable. No reason to enable these inside, say, an <input type=text>.
http://trac.webkit.org/changeset/78288