Opened 16 years ago
Closed 10 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 , 16 years ago
Summary: | Add mnemonic support to the preset menu → Add shortcut support to all actions without shortcuts |
---|
comment:2 by , 15 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 , 13 years ago
Owner: | changed from | to
---|
comment:4 by , 11 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).