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

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

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

revision 1863 by iliev, Mon Aug 11 22:51:24 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 121  public class JSInstrumentsDbTree extends Line 121  public class JSInstrumentsDbTree extends
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                    

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

  ViewVC Help
Powered by ViewVC