Modify

Opened 6 years ago

Closed 6 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 stoecker, 6 years ago

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.

comment:2 by Don-vip, 6 years ago

VK_SQUARE is a custom constant because there is no Java constant for this key.

comment:3 by stoecker, 6 years ago

How does VK_SQUARE work then? For me it is ALTGR+2.

Last edited 6 years ago by stoecker (previous) (diff)

comment:4 by Don-vip, 6 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.

comment:5 by stoecker, 6 years ago

Can you fix the PT assistant, I'll fix the josmcron for the other case?

comment:6 by Don-vip, 6 years ago

Done in [o34258].

comment:7 by stoecker, 6 years ago

Resolution: fixed
Status: newclosed

Ooops. Nearly forgot it.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.