diff options
| author | Dean Roberts | 2011-11-18 14:52:14 +0000 |
|---|---|---|
| committer | Paul Webster | 2011-11-18 14:52:14 +0000 |
| commit | b38dbdaddc14ca257b64796649e82a42a409ed22 (patch) | |
| tree | aeb4e5e490653fc0410b4168cb21eb09eb00a039 | |
| parent | 81ba643bf096f3c32b01b8b85d07dcc63943ac65 (diff) | |
| download | eclipse.platform.ui-b38dbdaddc14ca257b64796649e82a42a409ed22.tar.gz eclipse.platform.ui-b38dbdaddc14ca257b64796649e82a42a409ed22.tar.xz eclipse.platform.ui-b38dbdaddc14ca257b64796649e82a42a409ed22.zip | |
Bug 364029 - [QuickAccess] Quick access closes during resize on Linuxv20111118-1452
| -rw-r--r-- | bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/SearchField.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/SearchField.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/SearchField.java index 8586029ca0e..16e0fe9da9e 100644 --- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/SearchField.java +++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/SearchField.java @@ -312,6 +312,10 @@ public class SearchField { table.getDisplay().asyncExec(new Runnable() { public void run() { if (!shell.isDisposed() && !table.isDisposed() && !text.isDisposed()) { + if (table.getDisplay().getActiveShell() == table.getShell()) { + text.setFocus(); + return; + } if (!shell.isFocusControl() && !table.isFocusControl() && !text.isFocusControl()) { quickAccessContents.doClose(); |
