未验证 提交 d03deca1 编写于 作者: G George 提交者: GitHub

#15745 fix binding in panel for Datetime editor (#15849)

上级 91f41148
......@@ -102,7 +102,11 @@ public abstract class BaseValueEditor<T extends Control> implements IValueEditor
//isInline = false;
}
TextEditorUtils.enableHostEditorKeyBindingsSupport(valueController.getValueSite(), inlineControl);
if (inlineControl instanceof Composite) {
for (Control childControl : ((Composite) inlineControl).getChildren()) {
TextEditorUtils.enableHostEditorKeyBindingsSupport(valueController.getValueSite(), childControl);
}
}
// if (!isInline) {
// inlineControl.setBackground(valueController.getEditPlaceholder().getBackground());
// }
......@@ -139,7 +143,6 @@ public abstract class BaseValueEditor<T extends Control> implements IValueEditor
for (Control childControl : ((Composite) inlineControl).getChildren()) {
if (!childControl.isDisposed()) {
addAutoSaveSupport(childControl);
TextEditorUtils.enableHostEditorKeyBindingsSupport(valueController.getValueSite(), childControl);
EditorUtils.trackControlContext(valueController.getValueSite(), childControl, RESULTS_EDIT_CONTEXT_ID);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册