Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(939)

Unified Diff: chrome/browser/autocomplete/autocomplete_edit_view_win.cc

Issue 115934: Ignore the insert key so we don't switch into overtype mode (which surprises ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autocomplete/autocomplete_edit_view_win.cc
===================================================================
--- chrome/browser/autocomplete/autocomplete_edit_view_win.cc (revision 17144)
+++ chrome/browser/autocomplete/autocomplete_edit_view_win.cc (working copy)
@@ -1729,6 +1729,11 @@
return true;
case VK_INSERT:
+ // Ignore insert by itself, so we don't turn overtype mode on/off.
+ if (!(flags & KF_ALTDOWN) && (GetKeyState(VK_SHIFT) >= 0) &&
+ (GetKeyState(VK_CONTROL) >= 0))
+ return true;
+ // FALL THROUGH
case 'V':
if ((flags & KF_ALTDOWN) ||
(GetKeyState((key == 'V') ? VK_CONTROL : VK_SHIFT) >= 0))
« no previous file with comments | « no previous file | views/controls/textfield/native_textfield_win.cc » ('j') | views/controls/textfield/native_textfield_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698