From fc3fbcbd37c9f912a76f7a3f599c510908475358 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Thu, 11 May 2017 15:21:32 +0800 Subject: [PATCH] rt --- .../mainframe/alphafine/component/AlphaFineTextField.java | 4 ++++ .../design/actions/help/AlphaFine/AlphafineConfigManager.java | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineTextField.java b/designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineTextField.java index 9cee39ee7a..715d3ccb68 100644 --- a/designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineTextField.java +++ b/designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineTextField.java @@ -62,6 +62,10 @@ public class AlphaFineTextField extends UITextField { this.image = image; } + /** + * 添加键盘监听器 + * @param component + */ public void initKeyListener(Component component) { addKeyListener(new KeyAdapter() { @Override diff --git a/designer_base/src/com/fr/design/actions/help/AlphaFine/AlphafineConfigManager.java b/designer_base/src/com/fr/design/actions/help/AlphaFine/AlphafineConfigManager.java index 0dd4d9117c..be1ff3386d 100644 --- a/designer_base/src/com/fr/design/actions/help/AlphaFine/AlphafineConfigManager.java +++ b/designer_base/src/com/fr/design/actions/help/AlphaFine/AlphafineConfigManager.java @@ -130,6 +130,10 @@ public class AlphafineConfigManager implements XMLable { return shortcuts; } + /** + * 返回默认快捷键 + * @return + */ private String getDefaultShortCuts() { return OperatingSystem.isMacOS()? "meta + F" : "ctrl + F"; }