Reviewed by Darin.
[WebKit-https.git] / WebKit / mac / WebView / WebHTMLView.mm
index e244a27ecd73c962d00273a1c412eabba64aacd7..7b9c23aa30efab6ebd604bcf43b52a504f6fd8dd 100644 (file)
@@ -5062,7 +5062,7 @@ static void extractUnderlines(NSAttributedString *string, Vector<CompositionUnde
         Frame* coreFrame = core([self _frame]);
         if (![[webView _editingDelegateForwarder] webView:webView doCommandBySelector:selector] && coreFrame) {
             Editor::Command command = [self coreCommandBySelector:selector];
-            if (command.isTextInsertion())
+            if (command.isSupported())
                 eventWasHandled = command.execute(event);
             else {
                 _private->selectorForDoCommandBySelector = selector;