| Index: chrome/browser/cocoa/bug_report_window_controller.mm
|
| ===================================================================
|
| --- chrome/browser/cocoa/bug_report_window_controller.mm (revision 31238)
|
| +++ chrome/browser/cocoa/bug_report_window_controller.mm (working copy)
|
| @@ -129,7 +129,7 @@
|
| l10n_util::GetNSStringWithFixup(IDS_BUGREPORT_PHISHING_PAGE)];
|
| }
|
|
|
| -- (void)menu:(NSMenu *)menu willHighlightItem:(NSMenuItem *)item {
|
| +- (void)menu:(NSMenu*)menu willHighlightItem:(NSMenuItem *)item {
|
| NSString* buttonTitle = [[item title] isEqualToString:
|
| l10n_util::GetNSStringWithFixup(IDS_BUGREPORT_PHISHING_PAGE)] ?
|
| l10n_util::GetNSStringWithFixup(IDS_BUGREPORT_SEND_PHISHING_REPORT) :
|
| @@ -147,6 +147,15 @@
|
| }
|
| }
|
|
|
| +- (BOOL)control:(NSControl*)control textView:(NSTextView*)textView
|
| + doCommandBySelector:(SEL)commandSelector {
|
| + if (commandSelector == @selector(insertNewline:)) {
|
| + [textView insertNewlineIgnoringFieldEditor:self];
|
| + return YES;
|
| + }
|
| + return NO;
|
| +}
|
| +
|
| // BugReportWindowController needs to change the title of the Send Report
|
| // button when the user chooses the phishing bug type, so we need to bind
|
| // the function that changes the button title to the bug type key.
|
|
|