Index: webkit/tools/test_shell/text_input_controller.cc |
=================================================================== |
--- webkit/tools/test_shell/text_input_controller.cc (revision 25409) |
+++ webkit/tools/test_shell/text_input_controller.cc (working copy) |
@@ -52,8 +52,13 @@ |
if (!main_frame) |
return; |
- if (args.size() >= 1 && args[0].isString()) |
+ if (args.size() >= 1 && args[0].isString()) { |
+ if (main_frame->hasMarkedText()) { |
+ main_frame->unmarkText(); |
+ main_frame->replaceSelection(WebString()); |
+ } |
main_frame->insertText(WebString::fromUTF8(args[0].ToString())); |
+ } |
} |
void TextInputController::doCommand( |