summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/cocoa/autocomplete_text_field.mm4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/autocomplete_text_field.mm b/chrome/browser/cocoa/autocomplete_text_field.mm
index 797fb50..a067fdc 100644
--- a/chrome/browser/cocoa/autocomplete_text_field.mm
+++ b/chrome/browser/cocoa/autocomplete_text_field.mm
@@ -218,10 +218,12 @@
}
- (BOOL)textView:(NSTextView*)textView doCommandBySelector:(SEL)cmd {
+ // TODO(shess): Review code for cases where we're fruitlessly attempting to
+ // work in spite of not having an observer_.
if (observer_ && observer_->OnDoCommandBySelector(cmd)) {
return YES;
}
- return [super textView:textView doCommandBySelector:cmd];
+ return NO;
}
- (void)windowDidResignKey:(NSNotification*)notification {