xiaoxia 8 years ago
parent
commit
fc3fbcbd37
  1. 4
      designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineTextField.java
  2. 4
      designer_base/src/com/fr/design/actions/help/AlphaFine/AlphafineConfigManager.java

4
designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineTextField.java

@ -62,6 +62,10 @@ public class AlphaFineTextField extends UITextField {
this.image = image; this.image = image;
} }
/**
* 添加键盘监听器
* @param component
*/
public void initKeyListener(Component component) { public void initKeyListener(Component component) {
addKeyListener(new KeyAdapter() { addKeyListener(new KeyAdapter() {
@Override @Override

4
designer_base/src/com/fr/design/actions/help/AlphaFine/AlphafineConfigManager.java

@ -130,6 +130,10 @@ public class AlphafineConfigManager implements XMLable {
return shortcuts; return shortcuts;
} }
/**
* 返回默认快捷键
* @return
*/
private String getDefaultShortCuts() { private String getDefaultShortCuts() {
return OperatingSystem.isMacOS()? "meta + F" : "ctrl + F"; return OperatingSystem.isMacOS()? "meta + F" : "ctrl + F";
} }

Loading…
Cancel
Save