webui: unable to select single value in CB by enter key

Fix: If editable combobox has one value, the value is selected and changed by hand, it can't be re-selected by enter key.
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
This commit is contained in:
Petr Vobornik
2015-04-14 19:03:53 +02:00
parent d1691eee88
commit f7eeaa4ce0
+1
View File
@@ -3818,6 +3818,7 @@ IPA.combobox_widget = function(spec) {
that.list_on_keyup = function(e) {
if (e.which === keys.ENTER || e.which === keys.SPACE) {
e.stopPropagation();
that.list_on_change();
that.close();
IPA.select_range(that.input, 0, 0);
return false;