Ignore:
Timestamp:
2010-05-31T10:27:36+02:00 (14 years ago)
Author:
bastik
Message:

add action key binding

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/PositionLayer.java

    r21519 r21524  
    6666                //Main.panel.addKeyListener(this);
    6767                //Main.map.mapView.addKeyListener(this);
     68                System.err.println("key :");
     69
     70                Action a = new AbstractAction() {
     71                        public void actionPerformed(ActionEvent e) {
     72                                // TODO Auto-generated method stub
     73                                System.err.println("!!!boom!!!");
     74                        }};
     75                Main.registerActionShortcut(a, KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, 0));
     76
     77                //Main.map.mapView.addKeyListener(this);
    6878                //Main.contentPane.getInputMap().put(KeyStroke.getKeyStroke("SPACE"),"pressed");
    6979                //Main.contentPane.getActionMap().put("pressed",a);
Note: See TracChangeset for help on using the changeset viewer.