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 |
* |
* |
240 |
}; |
}; |
241 |
a.setEnabled(false); |
a.setEnabled(false); |
242 |
getActionMap().put("none", a); |
getActionMap().put("none", a); |
243 |
|
|
244 |
|
int modKey = CC.getViewConfig().getDefaultModKey(); |
245 |
|
|
246 |
getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put ( |
getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put ( |
247 |
KeyStroke.getKeyStroke(KeyEvent.VK_X, KeyEvent.CTRL_MASK), |
KeyStroke.getKeyStroke(KeyEvent.VK_X, modKey), |
248 |
"none" |
"none" |
249 |
); |
); |
250 |
|
|
251 |
getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put ( |
getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put ( |
252 |
KeyStroke.getKeyStroke(KeyEvent.VK_C, KeyEvent.CTRL_MASK), |
KeyStroke.getKeyStroke(KeyEvent.VK_C, modKey), |
253 |
"none" |
"none" |
254 |
); |
); |
255 |
|
|
256 |
getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put ( |
getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put ( |
257 |
KeyStroke.getKeyStroke(KeyEvent.VK_V, KeyEvent.CTRL_MASK), |
KeyStroke.getKeyStroke(KeyEvent.VK_V, modKey), |
258 |
"none" |
"none" |
259 |
); |
); |
260 |
|
|
261 |
getInputMap(JComponent.WHEN_FOCUSED).put ( |
getInputMap(JComponent.WHEN_FOCUSED).put ( |
262 |
KeyStroke.getKeyStroke(KeyEvent.VK_X, KeyEvent.CTRL_MASK), |
KeyStroke.getKeyStroke(KeyEvent.VK_X, modKey), |
263 |
"none" |
"none" |
264 |
); |
); |
265 |
|
|
266 |
getInputMap(JComponent.WHEN_FOCUSED).put ( |
getInputMap(JComponent.WHEN_FOCUSED).put ( |
267 |
KeyStroke.getKeyStroke(KeyEvent.VK_C, KeyEvent.CTRL_MASK), |
KeyStroke.getKeyStroke(KeyEvent.VK_C, modKey), |
268 |
"none" |
"none" |
269 |
); |
); |
270 |
|
|
271 |
getInputMap(JComponent.WHEN_FOCUSED).put ( |
getInputMap(JComponent.WHEN_FOCUSED).put ( |
272 |
KeyStroke.getKeyStroke(KeyEvent.VK_V, KeyEvent.CTRL_MASK), |
KeyStroke.getKeyStroke(KeyEvent.VK_V, modKey), |
273 |
"none" |
"none" |
274 |
); |
); |
275 |
|
|