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

Issue 115934: Ignore the insert key so we don't switch into overtype mode (which surprises ... (Closed)

Created:
11 years, 6 months ago by Peter Kasting
Modified:
9 years, 7 months ago
Visibility:
Public.

Description

Ignore the insert key so we don't switch into overtype mode (which surprises users since there's no indicator of it). BUG=6856 TEST=In Omnibox or in a native textfield (e.g. the "Add a site" URL field for the Options dialog's "Open these sites at startup" pref), type text, set cursor at beginning, hit insert, and type. Your text should prepend to the existing text instead of replacing it. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=17231

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
M chrome/browser/autocomplete/autocomplete_edit_view_win.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M views/controls/textfield/native_textfield_win.cc View 1 chunk +4 lines, -0 lines 3 comments Download

Messages

Total messages: 4 (0 generated)
Peter Kasting
11 years, 6 months ago (2009-05-29 17:58:52 UTC) #1
Finnur
http://codereview.chromium.org/115934/diff/1/views/controls/textfield/native_textfield_win.cc File views/controls/textfield/native_textfield_win.cc (right): http://codereview.chromium.org/115934/diff/1/views/controls/textfield/native_textfield_win.cc#newcode426 views/controls/textfield/native_textfield_win.cc:426: return; Peter, did you mean to add a break ...
9 years, 9 months ago (2011-03-25 14:44:00 UTC) #2
Peter Kasting
http://codereview.chromium.org/115934/diff/1/views/controls/textfield/native_textfield_win.cc File views/controls/textfield/native_textfield_win.cc (right): http://codereview.chromium.org/115934/diff/1/views/controls/textfield/native_textfield_win.cc#newcode426 views/controls/textfield/native_textfield_win.cc:426: return; On 2011/03/25 14:44:00, Finnur wrote: > Peter, did ...
9 years, 9 months ago (2011-03-25 19:25:12 UTC) #3
Finnur
9 years, 9 months ago (2011-03-25 19:27:57 UTC) #4
http://codereview.chromium.org/115934/diff/1/views/controls/textfield/native_...
File views/controls/textfield/native_textfield_win.cc (right):

http://codereview.chromium.org/115934/diff/1/views/controls/textfield/native_...
views/controls/textfield/native_textfield_win.cc:426: return;
Excellent. I guess I'll add a comment here for future generations. Thanks.

On 2011/03/25 19:25:12, Peter Kasting wrote:
> On 2011/03/25 14:44:00, Finnur wrote:
> > Peter, did you mean to add a break statement here as well or do you want
this
> to
> > fall into the |case 'V'| clause below if the 'if' statement is false?
> 
> The latter.  Shift-insert == ctrl-v.  See also how the previous code was a
> direct fallthrough with no conditional.

Powered by Google App Engine
This is Rietveld 408576698