changeset 93:c6375310e143

RT-18304: ComboBox hide issues
author Jonathan Giles
date Thu, 01 Dec 2011 07:58:45 +1000
parents 628587bfd5e8
children b8d5a05a415b
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/ComboBoxListViewSkin.java
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/ComboBoxListViewSkin.java	Wed Nov 30 11:48:34 2011 +1000
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/ComboBoxListViewSkin.java	Thu Dec 01 07:58:45 2011 +1000
@@ -218,6 +218,11 @@
                 int index = listView.getSelectionModel().getSelectedIndex();
                 comboBox.getSelectionModel().select(index);
                 comboBox.setValue(listView.getSelectionModel().getSelectedItem());
+            }
+        });
+        
+        listView.addEventFilter(MouseEvent.MOUSE_RELEASED, new EventHandler<MouseEvent>() {
+            @Override public void handle(MouseEvent t) {
                 comboBox.hide();
             }
         });