This little fellow was hiding in a cupboard (patchset 784-786 was abandoned).

Fix: If editable combobox has one value, the value is selected and changed by hand, it can't be re-selected by enter key.
--
Petr Vobornik
From 210ee41d957c9efb818b721ef40ffc4d469cf15a Mon Sep 17 00:00:00 2001
From: Petr Vobornik <pvobo...@redhat.com>
Date: Wed, 12 Nov 2014 15:41:44 +0100
Subject: [PATCH] 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.
---
 install/ui/src/freeipa/widget.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js
index 1ef1a2bf22b735edcfcca44cfc1e69bc8d36a740..6767b520ee3d388a36de743122774a462d4a4be5 100644
--- a/install/ui/src/freeipa/widget.js
+++ b/install/ui/src/freeipa/widget.js
@@ -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;
-- 
2.1.0

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to