summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-14 01:18:40 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-14 01:18:40 +0000
commitea7926af6ae6b237707f8a6186530ee764cc529c (patch)
tree3bba768a1716799fc67a5144d85082599009ef0f /chrome
parent55246186dcd1149e99d75e15694a40d5e58e520c (diff)
downloadchromium_src-ea7926af6ae6b237707f8a6186530ee764cc529c.zip
chromium_src-ea7926af6ae6b237707f8a6186530ee764cc529c.tar.gz
chromium_src-ea7926af6ae6b237707f8a6186530ee764cc529c.tar.bz2
Check for enter as well as return in the find bar
BUG=19312 Review URL: http://codereview.chromium.org/165511 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23408 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/gtk/find_bar_gtk.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/gtk/find_bar_gtk.cc b/chrome/browser/gtk/find_bar_gtk.cc
index a22dad6..8abfdb2 100644
--- a/chrome/browser/gtk/find_bar_gtk.cc
+++ b/chrome/browser/gtk/find_bar_gtk.cc
@@ -497,7 +497,8 @@ gboolean FindBarGtk::OnKeyPressEvent(GtkWidget* widget, GdkEventKey* event,
} else if (GDK_Escape == event->keyval) {
find_bar->find_bar_controller_->EndFindSession();
return TRUE;
- } else if (GDK_Return == event->keyval) {
+ } else if (GDK_Return == event->keyval ||
+ GDK_KP_Enter == event->keyval) {
bool forward = (event->state & gtk_accelerator_get_default_mod_mask()) !=
GDK_SHIFT_MASK;
find_bar->FindEntryTextInContents(forward);