changeset 7792:c278fcc754e6

[SCENEBUILDER] Fix for DTL-6815: Auto-suggest menus are showing focus when they do not have it
author Jerome Cambon
date Tue, 26 Aug 2014 15:26:15 +0200
parents 0c4d4cf6cb87
children d820fd5710a5
files apps/scenebuilder/SceneBuilderKit/src/com/oracle/javafx/scenebuilder/kit/editor/panel/inspector/editors/AutoSuggestEditor.java
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/apps/scenebuilder/SceneBuilderKit/src/com/oracle/javafx/scenebuilder/kit/editor/panel/inspector/editors/AutoSuggestEditor.java	Tue Aug 26 15:09:32 2014 +0200
+++ b/apps/scenebuilder/SceneBuilderKit/src/com/oracle/javafx/scenebuilder/kit/editor/panel/inspector/editors/AutoSuggestEditor.java	Tue Aug 26 15:26:15 2014 +0200
@@ -251,6 +251,7 @@
         if (event.getCode() == KeyCode.DOWN) {
             // 'Down' key shows the popup even if popup has been disabled
             suggest = true;
+            suggestedLv.requestFocus();
         }
         handleSuggestedPopup();
     }
@@ -325,8 +326,6 @@
             suggestedLv.getSelectionModel().clearSelection();
             // popup x coordinate need to be slightly moved, so that the popup is centered 
             entryField.getContextMenu().show(entryField, Side.BOTTOM, 0, 0);
-
-            suggestedLv.requestFocus();
         }
     }