From ae82400bb4ff73fbc67c1d618ebf7fb53d1d83e3 Mon Sep 17 00:00:00 2001 From: stippi Date: Tue, 20 Apr 2010 15:43:23 +0000 Subject: [PATCH] The return key is never supposed to reach the BTextView implementation, even if we don't have to invoke in the URLTextView. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@440 94f232f2-1747-11df-bad5-a5bfde151594 --- src/apps/webpositive/URLInputGroup.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/apps/webpositive/URLInputGroup.cpp b/src/apps/webpositive/URLInputGroup.cpp index 99072acc15..b372fcfbdc 100644 --- a/src/apps/webpositive/URLInputGroup.cpp +++ b/src/apps/webpositive/URLInputGroup.cpp @@ -269,6 +269,10 @@ URLInputGroup::URLTextView::KeyDown(const char* bytes, int32 numBytes) SelectAll(); break; + case B_RETURN: + // Don't let this through to the text view. + break; + default: BTextView::KeyDown(bytes, numBytes); break;