Chromium Code Reviews| Index: chrome/views/controls/text_field.cc |
| =================================================================== |
| --- chrome/views/controls/text_field.cc (revision 13127) |
| +++ chrome/views/controls/text_field.cc (working copy) |
| @@ -345,7 +345,7 @@ |
| void TextField::Edit::SelectAll() { |
| // Using (0, -1) here is equivalent to calling SetSelAll(); both will select |
| // the "phantom newline" that we're trying to avoid. |
| - SetSel(0, GetTextLength()); |
| + SetSel(GetTextLength(), 0); |
|
sky
2009/04/06 16:35:46
Does this mean any time the user presses control-a
Mohamed Mansour (USE mhm)
2009/04/06 16:45:23
I had that question in my mind as well. When teste
|
| } |
| void TextField::Edit::ClearSelection() { |