Chromium Code Reviews| Index: chrome/browser/autocomplete/autocomplete_edit_view_win.cc |
| =================================================================== |
| --- chrome/browser/autocomplete/autocomplete_edit_view_win.cc (revision 23046) |
| +++ chrome/browser/autocomplete/autocomplete_edit_view_win.cc (working copy) |
| @@ -1817,6 +1817,13 @@ |
| return true; |
| case VK_BACK: { |
| + // On Ctrl+Backspace, the default Windows behavior is to delete the |
| + // previous word, however this leaves behind the inline autocomplete |
| + // suggestion text. Here we clear the suggestion text and place the caret |
| + // at the end of the user typed text. |
| + if (GetKeyState(VK_CONTROL) < 0) |
|
Peter Kasting
2009/08/16 21:59:04
This approach isn't right.
First, you need to hav
|
| + SetWindowTextAndCaretPos(model_->user_text(), |
| + model_->user_text().length()); |
| if ((flags & KF_ALTDOWN) || model_->is_keyword_hint() || |
| model_->keyword().empty()) |
| return false; |