| Index: ui/views/controls/textfield/textfield.cc
|
| diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc
|
| index 6eea993064381734d19a2b21ebaa8b595b931907..73cccd53caee69362e41da731ea84207ccd45fc4 100644
|
| --- a/ui/views/controls/textfield/textfield.cc
|
| +++ b/ui/views/controls/textfield/textfield.cc
|
| @@ -809,6 +809,14 @@ void Textfield::OnGestureEvent(ui::GestureEvent* event) {
|
| }
|
| }
|
|
|
| +// This function is called by BrowserView to execute clipboard commands.
|
| +bool Textfield::AcceleratorPressed(const ui::Accelerator& accelerator) {
|
| + ui::KeyEvent event(accelerator.type(), accelerator.key_code(),
|
| + accelerator.modifiers());
|
| + ExecuteCommand(GetCommandForKeyEvent(event, HasSelection()));
|
| + return true;
|
| +}
|
| +
|
| void Textfield::AboutToRequestFocusFromTabTraversal(bool reverse) {
|
| SelectAll(false);
|
| }
|
|
|