提交 97143f72 编写于 作者: S Serge Rider

#5949 Spreadsheet focus handling fix


Former-commit-id: 7a88b8b1
上级 68b38e06
......@@ -352,7 +352,13 @@ public class Spreadsheet extends LightGrid implements Listener {
if (oldEditor != null) {
if (!oldEditor.isDisposed()) {
oldEditor.dispose();
//UIUtils.asyncExec(this::setFocus);
UIUtils.asyncExec(() -> {
if (UIUtils.getActiveWorkbenchWindow().getShell().isFocusControl()) {
// Set focus to spreadsheet only if it was reset to the top Window (MacOS)
// #5949
setFocus();
}
});
}
tableEditor.setEditor(null);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册