martin-g commented on code in PR #1041:
URL: https://github.com/apache/wicket/pull/1041#discussion_r1854155354
##########
wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/AutoCompleteSettings.java:
##########
@@ -379,4 +381,55 @@ public AutoCompleteSettings setMinInputLength(int
minInputLength)
this.minInputLength = minInputLength;
return this;
}
+
+ /**
+ * Indicates how the Tab key should be handled when having an item in
the autocomplete list
+ * selected, {@link TabBehavior#SELECT_FOCUS_NEXT_ELEMENT} is the
default behavior.
+ *
+ * @return the behavior that should be used when the Tab key is pressed
+ */
+ public TabBehavior getTabBehavior()
+ {
+ return tabBehavior;
+ }
+
+ /**
+ * Set how the Tab key should be handled when having an item in the
autocomplete list selected.
+ *
+ * @param tabSelectBehavior the behavior that should be used when the
Tab key is pressed,
+ * {@link TabBehavior#SELECT_FOCUS_NEXT_ELEMENT} is the default behavior
+ * @return this {@link AutoCompleteSettings}
+ */
+ public AutoCompleteSettings setTabBehavior(TabBehavior
tabSelectBehavior)
+ {
+ this.tabBehavior = tabSelectBehavior;
+ return this;
+ }
+
+ /**
+ * A behavior that can be used to control how the Tab key should be
handled when having an item
+ * in the autocomplete list is marked.
+ */
+ public enum TabBehavior {
Review Comment:
Maybe KeyTabBehavior ?!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]