Chromium Code Reviews| Index: views/controls/textfield/native_textfield_win.cc |
| =================================================================== |
| --- views/controls/textfield/native_textfield_win.cc (revision 17129) |
| +++ views/controls/textfield/native_textfield_win.cc (working copy) |
| @@ -420,6 +420,10 @@ |
| return; |
| 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; |
|
Finnur
2011/03/25 14:44:00
Peter, did you mean to add a break statement here
Peter Kasting
2011/03/25 19:25:12
The latter. Shift-insert == ctrl-v. See also how
Finnur
2011/03/25 19:27:57
Excellent. I guess I'll add a comment here for fut
|
| case 'V': |
| if ((flags & KF_ALTDOWN) || |
| (GetKeyState((key == 'V') ? VK_CONTROL : VK_SHIFT) >= 0)) |