add another command.
[WebKit-https.git] / WebKitTools / DumpRenderTree / qt / jsobjects.cpp
index 32c7bbc713df8f4dcc03bcd22929c8f557e6496f..fae1447afa2141a082182a785a3ecce7812bb987 100644 (file)
@@ -375,6 +375,8 @@ void TextInputController::doCommand(const QString &command)
         keycode = Qt::Key_Backspace;
     } else if(command == "deleteBackward:") {
         keycode = Qt::Key_Backspace;
+    } else if(command == "deleteForward:") {
+        keycode = Qt::Key_Delete;
     }
     QKeyEvent event(QEvent::KeyPress, keycode, modifiers);
     QApplication::sendEvent(parent(), &event);