| Index: ui/views/controls/textfield/textfield.cc
|
| diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc
|
| index be739e44479b1a853e7a3ec4f22db77e889bb8c5..3bfd8176efb42ae72f40c7c72e4062e9831ff489 100644
|
| --- a/ui/views/controls/textfield/textfield.cc
|
| +++ b/ui/views/controls/textfield/textfield.cc
|
| @@ -1302,6 +1302,9 @@ bool Textfield::GetAcceleratorForCommandId(int command_id,
|
| }
|
|
|
| void Textfield::ExecuteCommand(int command_id, int event_flags) {
|
| + if (!Textfield::IsCommandIdEnabled(command_id))
|
| + return;
|
| +
|
| DestroyTouchSelection();
|
|
|
| // Some codepaths may bypass GetCommandForKeyEvent, so any selection-dependent
|
| @@ -1319,9 +1322,6 @@ void Textfield::ExecuteCommand(int command_id, int event_flags) {
|
| }
|
| }
|
|
|
| - if (!IsCommandIdEnabled(command_id))
|
| - return;
|
| -
|
| bool text_changed = false;
|
| bool cursor_changed = false;
|
| bool rtl = GetTextDirection() == base::i18n::RIGHT_TO_LEFT;
|
|
|