Last change
on this file since 560 was 469, checked in by gebner, 16 years ago |
Remove ctrl+shift escapes from most actions.
|
File size:
820 bytes
|
Line | |
---|
1 | // License: GPL. Copyright 2007 by Immanuel Scholz and others
|
---|
2 | package org.openstreetmap.josm.actions;
|
---|
3 |
|
---|
4 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
5 |
|
---|
6 | import java.awt.event.ActionEvent;
|
---|
7 | import java.awt.event.KeyEvent;
|
---|
8 | import javax.swing.KeyStroke;
|
---|
9 | import javax.swing.JComponent;
|
---|
10 |
|
---|
11 | import org.openstreetmap.josm.Main;
|
---|
12 |
|
---|
13 | public class UnselectAllAction extends JosmAction {
|
---|
14 |
|
---|
15 | public UnselectAllAction() {
|
---|
16 | super(tr("Unselect All"),"unselectall", tr("Unselect all objects."), KeyEvent.VK_U, 0, true);
|
---|
17 |
|
---|
18 | // Add extra shortcut C-S-a
|
---|
19 | Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(
|
---|
20 | KeyStroke.getKeyStroke(KeyEvent.VK_A, KeyEvent.CTRL_DOWN_MASK | KeyEvent.SHIFT_DOWN_MASK), tr("Unselect All"));
|
---|
21 | }
|
---|
22 |
|
---|
23 | public void actionPerformed(ActionEvent e) {
|
---|
24 | Main.ds.setSelected();
|
---|
25 | }
|
---|
26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.