Changeset 2493 in josm
- Timestamp:
- 2009-11-21T18:50:09+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/PropertiesDialog.java
r2490 r2493 559 559 JPanel buttonPanel = new JPanel(new GridLayout(1,3)); 560 560 561 // -- add action and shortcut 561 562 AddAction addAction = new AddAction(); 562 Shortcut.registerShortcut("properties:add", tr("Add Properties"), KeyEvent.VK_B,563 Shortcut.GROUP_MNEMONIC);564 563 this.btnAdd = new SideButton(addAction); 565 564 btnAdd.setFocusable(true); … … 568 567 btnAdd.getActionMap().put("onEnter", addAction); 569 568 569 Shortcut sc = Shortcut.registerShortcut("properties:add", tr("Add Properties"), KeyEvent.VK_B, 570 Shortcut.GROUP_MNEMONIC); 571 Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(sc.getKeyStroke(), "properties:add"); 572 Main.contentPane.getActionMap().put("properties:add", addAction); 573 574 575 // -- edit action 576 // 570 577 EditAction editAction = new EditAction(); 571 578 propertyTable.getSelectionModel().addListSelectionListener(editAction); … … 575 582 576 583 // -- delete action 584 // 577 585 DeleteAction deleteAction = new DeleteAction(); 578 586 this.btnDel = new SideButton(deleteAction);
Note:
See TracChangeset
for help on using the changeset viewer.