Opened 17 years ago
Closed 11 years ago
#2170 closed enhancement (fixed)
Add shortcut support to all actions without shortcuts
| Reported by: | Claudius | Owned by: | team |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Core shortcuts | Version: | |
| Keywords: | Cc: |
Description
The preset menu should auto-populate mnemonic keys to the subcategories to make it possible to navigate to to the motorway preset by pressing "Alt+P" -> "S" (Streets menu), "M" Motorway preset.
Attachments (0)
Change History (5)
comment:1 by , 17 years ago
| Summary: | Add mnemonic support to the preset menu → Add shortcut support to all actions without shortcuts |
|---|
comment:2 by , 16 years ago
Currently all menu shortcuts take only the english shortcut, e.g. Alt+T (_Tools) opens the german "Werkzeuge"-menu, Alt+V (_View) opens "Ansicht" etc.
Shortscuts are added to the main menu here:
http://josm.openstreetmap.de/browser/trunk/src/org/openstreetmap/josm/gui/MainMenu.java#L166
public final JMenu fileMenu = addMenu(marktr("File"), KeyEvent.VK_F, 0, ht("/Menu/File"));
I haven't found a quick way to populate those key events from the translated string.
comment:3 by , 14 years ago
| Owner: | changed from to |
|---|
comment:4 by , 12 years ago
| Component: | Core → Core shortcuts |
|---|



The shortcut handling should allow to assign shortcuts to actions which have no shortcut (but are available in the menu).