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

Unified Diff: chrome/browser/gtk/find_bar_gtk.cc

Issue 122047: GTK: shift-enter in find bar searches backwards.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/find_bar_gtk.cc
===================================================================
--- chrome/browser/gtk/find_bar_gtk.cc (revision 18182)
+++ chrome/browser/gtk/find_bar_gtk.cc (working copy)
@@ -398,7 +398,9 @@
find_bar->find_bar_controller_->EndFindSession();
return TRUE;
} else if (GDK_Return == event->keyval) {
- find_bar->FindEntryTextInContents(true);
+ bool forward = (event->state & gtk_accelerator_get_default_mod_mask()) !=
+ GDK_SHIFT_MASK;
+ find_bar->FindEntryTextInContents(forward);
return TRUE;
}
return FALSE;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698