Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2013-02-11 19:21:52 +0000
committerMarkus Keller2013-02-11 19:21:52 +0000
commit9cfab4598be188446b8e12895862a19be6dd7753 (patch)
tree96c2929b9d4abd25b6bfa832dc8ad823ccd8522a
parentebf6eacbecbc7efd6209c7475668a42ae197a98d (diff)
downloadeclipse.platform.ui-9cfab4598be188446b8e12895862a19be6dd7753.tar.gz
eclipse.platform.ui-9cfab4598be188446b8e12895862a19be6dd7753.tar.xz
eclipse.platform.ui-9cfab4598be188446b8e12895862a19be6dd7753.zip
Bug 297232: [Viewers] FilteredTree should not catch Enter key
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/FilteredTree.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/FilteredTree.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/FilteredTree.java
index fa965a56bbe..f2b42f6771b 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/FilteredTree.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/FilteredTree.java
@@ -818,7 +818,8 @@ public class FilteredTree extends Composite {
protected void updateTreeSelection(boolean setFocus) {
Tree tree = getViewer().getTree();
if (tree.getItemCount() == 0) {
- Display.getCurrent().beep();
+ if (setFocus)
+ Display.getCurrent().beep();
} else {
// if the initial filter text hasn't changed, do not try
// to match

Back to the top