/[svn]/jsampler/trunk/src/org/jsampler/view/std/JSInstrumentsDbTable.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/view/std/JSInstrumentsDbTable.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1785 by iliev, Tue Oct 7 00:07:14 2008 UTC revision 1864 by iliev, Sat Mar 14 20:44:58 2009 UTC
# Line 1  Line 1 
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   *   *
# Line 240  public class JSInstrumentsDbTable extend Line 240  public class JSInstrumentsDbTable extend
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                                    

Legend:
Removed from v.1785  
changed lines
  Added in v.1864

  ViewVC Help
Powered by ViewVC