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

Unified Diff: views/controls/message_box_view.cc

Issue 115822: On MessageBoxView, do not intercept Ctrl-C by an Accelerator when the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/message_box_view.cc
===================================================================
--- views/controls/message_box_view.cc (revision 16872)
+++ views/controls/message_box_view.cc (working copy)
@@ -94,6 +94,10 @@
// We only accepts Ctrl-C.
DCHECK(accelerator.GetKeyCode() == 'C' && accelerator.IsCtrlDown());
+ // We must not intercept Ctrl-C when we have a text box and it's focused.
+ if (prompt_field_ && prompt_field_->HasFocus())
+ return false;
+
if (!views::ViewsDelegate::views_delegate)
return false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698