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

Unified Diff: chrome/browser/cocoa/bug_report_window_controller.h

Issue 374024: Allow return key to add new line in description text field.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | « chrome/app/nibs/ReportBug.xib ('k') | chrome/browser/cocoa/bug_report_window_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/bug_report_window_controller.h
===================================================================
--- chrome/browser/cocoa/bug_report_window_controller.h (revision 31238)
+++ chrome/browser/cocoa/bug_report_window_controller.h (working copy)
@@ -73,8 +73,15 @@
// bouncing to the phish report page instead of sending a report directly
// from the dialog box (or vice versa). Observe the menu of bug types
// and change the button title along with the selected bug.
-- (void)menu:(NSMenu *)menu willHighlightItem:(NSMenuItem *)item;
+- (void)menu:(NSMenu*)menu willHighlightItem:(NSMenuItem *)item;
+// Force the description text field to allow "return" to go to the next line
+// within the description field. Without this delegate method, "return" falls
+// back to the "Send Report" action, because this button has been bound to
+// the return key.
+- (BOOL)control:(NSControl*)control textView:(NSTextView*)textView
+ doCommandBySelector:(SEL)commandSelector;
+
// Properties for bindings.
@property (copy, nonatomic) NSString* bugDescription;
@property NSUInteger bugType;
« no previous file with comments | « chrome/app/nibs/ReportBug.xib ('k') | chrome/browser/cocoa/bug_report_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698