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

Unified Diff: third_party/WebKit/WebCore/platform/chromium/PopupMenuChromium.h

Issue 18466: Make the selection loop with arrow keys in the autocomplete popup (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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
Index: third_party/WebKit/WebCore/platform/chromium/PopupMenuChromium.h
===================================================================
--- third_party/WebKit/WebCore/platform/chromium/PopupMenuChromium.h (revision 8275)
+++ third_party/WebKit/WebCore/platform/chromium/PopupMenuChromium.h (working copy)
@@ -95,6 +95,12 @@
// regardless of this setting.
void setAcceptOnAbandon(bool value);
+ // Sets whether the we should move the selection to the first/last item
+ // when the user presses down/up arrow keys and the last/first item is
+ // selected.
+ // Default is false, causing the first/last item to stay selected.
+ void setLoopSelectionNavigation(bool value);
+
PopupListBox* listBox() const { return m_listBox.get(); }
// Refresh the popup values from the PopupMenuClient.

Powered by Google App Engine
This is Rietveld 408576698