1 |
/* |
/* |
2 |
* JSampler - a java front-end for LinuxSampler |
* JSampler - a java front-end for LinuxSampler |
3 |
* |
* |
4 |
* Copyright (C) 2005-2008 Grigor Iliev <grigor@grigoriliev.com> |
* Copyright (C) 2005-2009 Grigor Iliev <grigor@grigoriliev.com> |
5 |
* |
* |
6 |
* This file is part of JSampler. |
* This file is part of JSampler. |
7 |
* |
* |
121 |
}; |
}; |
122 |
a.setEnabled(false); |
a.setEnabled(false); |
123 |
getActionMap().put("none", a); |
getActionMap().put("none", a); |
124 |
|
|
125 |
|
int modKey = CC.getViewConfig().getDefaultModKey(); |
126 |
|
|
127 |
getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put ( |
getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put ( |
128 |
KeyStroke.getKeyStroke(KeyEvent.VK_X, KeyEvent.CTRL_MASK), "none" |
KeyStroke.getKeyStroke(KeyEvent.VK_X, modKey), "none" |
129 |
); |
); |
130 |
|
|
131 |
getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put ( |
getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put ( |
132 |
KeyStroke.getKeyStroke(KeyEvent.VK_V, KeyEvent.CTRL_MASK), "none" |
KeyStroke.getKeyStroke(KeyEvent.VK_V, modKey), "none" |
133 |
); |
); |
134 |
|
|
135 |
getInputMap(JComponent.WHEN_FOCUSED).put ( |
getInputMap(JComponent.WHEN_FOCUSED).put ( |
136 |
KeyStroke.getKeyStroke(KeyEvent.VK_X, KeyEvent.CTRL_MASK), "none" |
KeyStroke.getKeyStroke(KeyEvent.VK_X, modKey), "none" |
137 |
); |
); |
138 |
|
|
139 |
getInputMap(JComponent.WHEN_FOCUSED).put ( |
getInputMap(JComponent.WHEN_FOCUSED).put ( |
140 |
KeyStroke.getKeyStroke(KeyEvent.VK_V, KeyEvent.CTRL_MASK), "none" |
KeyStroke.getKeyStroke(KeyEvent.VK_V, modKey), "none" |
141 |
); |
); |
142 |
} |
} |
143 |
|
|