Changeset 3688 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2010-12-01T11:09:42+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
r3680 r3688 11 11 import java.awt.Rectangle; 12 12 import java.awt.event.ActionEvent; 13 import java.awt.event.InputEvent; 13 14 import java.awt.event.KeyEvent; 14 15 import java.awt.event.MouseEvent; … … 37 38 import javax.swing.ListSelectionModel; 38 39 import javax.swing.UIManager; 39 import javax.swing.event.ListDataEvent;40 40 import javax.swing.event.ListSelectionEvent; 41 41 import javax.swing.event.ListSelectionListener; … … 191 191 layerList.getColumnModel().getColumn(2).setCellRenderer(new LayerNameCellRenderer()); 192 192 layerList.getColumnModel().getColumn(2).setCellEditor(new LayerNameCellEditor(new JTextField())); 193 for (KeyStroke ks : new KeyStroke[] { 194 KeyStroke.getKeyStroke(KeyEvent.VK_C, InputEvent.CTRL_MASK), 195 KeyStroke.getKeyStroke(KeyEvent.VK_V, InputEvent.CTRL_MASK), 196 KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, InputEvent.SHIFT_MASK), 197 KeyStroke.getKeyStroke(KeyEvent.VK_UP, InputEvent.SHIFT_MASK), 198 KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, InputEvent.SHIFT_MASK), 199 KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, InputEvent.SHIFT_MASK), 200 KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP, 0), 201 KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, 0), 202 }) 203 { 204 layerList.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(ks, new Object()); 205 } 193 206 194 207 add(new JScrollPane(layerList), BorderLayout.CENTER);
Note:
See TracChangeset
for help on using the changeset viewer.