Modify ↓
Opened 7 years ago
Closed 7 years ago
#16361 closed task (fixed)
Shortcut warnings
Reported by: | Don-vip | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | Cc: | stoecker |
Description
I don't understand the warnings:
ERROR src/org/openstreetmap/josm/actions/ReorderImageryLayersAction.java#33 Shortcut.registerShortcut("imagery:reorderbis", "Reorder imagery layers", VK_SQUARE, Shortcut.DIRECT));} ERROR src_plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/PTAssistantPlugin.java#79 addMenu("File", /* I18N: mnemonic: F */ trc("menu", "Public Transport"),
What's wrong?
Attachments (0)
Change History (7)
comment:1 by , 7 years ago
comment:2 by , 7 years ago
VK_SQUARE
is a custom constant because there is no Java constant for this key.
comment:4 by , 7 years ago
I should have called it VK_TILDE. It's the key on the left of '1' key, it's being used by ²
on French AZERTY but ~
on QWERTY.
Note:
See TracTickets
for help on using tickets.
The parser is very simple.
For the second line the comment inside may be the issue. Moving the comment outside (in front of addMenu) will help. For the first I don't see the reason ATM. I'll have a look.