|
|
|
@ -12,6 +12,8 @@ import javax.swing.*;
|
|
|
|
|
import java.awt.event.KeyEvent; |
|
|
|
|
import java.util.Locale; |
|
|
|
|
|
|
|
|
|
import static com.fr.design.gui.syntax.ui.rtextarea.RTADefaultInputMap.DEFAULT_MODIFIER; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Created by IntelliJ IDEA. |
|
|
|
|
* Author : daisy |
|
|
|
@ -36,7 +38,7 @@ public class KeySetUtils {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public KeyStroke getKeyStroke() { |
|
|
|
|
return KeyStroke.getKeyStroke(KeyEvent.VK_O, KeyEvent.CTRL_MASK); |
|
|
|
|
return KeyStroke.getKeyStroke(KeyEvent.VK_O, DEFAULT_MODIFIER); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
@ -71,7 +73,7 @@ public class KeySetUtils {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public KeyStroke getKeyStroke() { |
|
|
|
|
return KeyStroke.getKeyStroke(KeyEvent.VK_W, KeyEvent.CTRL_MASK); |
|
|
|
|
return KeyStroke.getKeyStroke(KeyEvent.VK_W, DEFAULT_MODIFIER); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
@ -88,7 +90,7 @@ public class KeySetUtils {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public KeyStroke getKeyStroke() { |
|
|
|
|
return KeyStroke.getKeyStroke(KeyEvent.VK_S, KeyEvent.CTRL_MASK); |
|
|
|
|
return KeyStroke.getKeyStroke(KeyEvent.VK_S, DEFAULT_MODIFIER); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
@ -122,7 +124,7 @@ public class KeySetUtils {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public KeyStroke getKeyStroke() { |
|
|
|
|
return KeyStroke.getKeyStroke(KeyEvent.VK_Z, KeyEvent.CTRL_MASK); |
|
|
|
|
return KeyStroke.getKeyStroke(KeyEvent.VK_Z, DEFAULT_MODIFIER); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
@ -139,7 +141,7 @@ public class KeySetUtils {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public KeyStroke getKeyStroke() { |
|
|
|
|
return KeyStroke.getKeyStroke(KeyEvent.VK_Y, KeyEvent.CTRL_MASK); |
|
|
|
|
return KeyStroke.getKeyStroke(KeyEvent.VK_Y, DEFAULT_MODIFIER); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
@ -156,7 +158,7 @@ public class KeySetUtils {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public KeyStroke getKeyStroke() { |
|
|
|
|
return KeyStroke.getKeyStroke(KeyEvent.VK_E, KeyEvent.CTRL_MASK); |
|
|
|
|
return KeyStroke.getKeyStroke(KeyEvent.VK_E, DEFAULT_MODIFIER); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
@ -353,7 +355,7 @@ public class KeySetUtils {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public KeyStroke getKeyStroke() { |
|
|
|
|
return KeyStroke.getKeyStroke(KeyEvent.VK_M, KeyEvent.CTRL_MASK); |
|
|
|
|
return KeyStroke.getKeyStroke(KeyEvent.VK_M, DEFAULT_MODIFIER); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
@ -370,7 +372,7 @@ public class KeySetUtils {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public KeyStroke getKeyStroke() { |
|
|
|
|
return KeyStroke.getKeyStroke(KeyEvent.VK_E, KeyEvent.CTRL_MASK); |
|
|
|
|
return KeyStroke.getKeyStroke(KeyEvent.VK_E, DEFAULT_MODIFIER); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
@ -387,7 +389,7 @@ public class KeySetUtils {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public KeyStroke getKeyStroke() { |
|
|
|
|
return KeyStroke.getKeyStroke(KeyEvent.VK_E, KeyEvent.CTRL_MASK); |
|
|
|
|
return KeyStroke.getKeyStroke(KeyEvent.VK_E, DEFAULT_MODIFIER); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|