Modify

Opened 4 years ago

Last modified 2 years ago

#20140 assigned defect

JOSM inconsistently respects remapped macOS modifier keys

Reported by: derickson.e@… Owned by: Stereo
Priority: normal Milestone:
Component: Core shortcuts Version:
Keywords: template_report macos Cc:

Description

What steps will reproduce the problem?

  1. In macOS, go to System Preferences > Keyboard, then click Modifier Keys in the lower-right-corner
  2. Switch the Option and Command keys, then close all options dialogs
  3. In JOSM, select a feature, then press option+A using the newly-designated option key

What is the expected result?

All JOSM shortcuts, whether default or modified by me, should use the modifier key assignments I have set in the Mac system keyboard preferences.

What happens instead?

JOSM respects the system Modifier Keys settings inconsistently. With the above-pictured system settings, cmd+A performs Select All as expected, but option+A to Add Tag does not work. Neither do any of the toggle layer shortcuts, option+1-0. However, I can still hold down option while in Draw nodes to start a new way at the last node, and option-J still works to Disconnect node from way. It does not seem to matter if I use the default shortcut or if I change it.

Please provide any additional information below. Attach a screenshot if possible.

When using a keyboard designed for Windows with a Mac computer, the operating system will interpret the Windows key as the command key. Unfortunately, this results in the command and option (alt) keys being swapped from their positions on a Mac keyboard, which causes problems with muscle memory when switching between keyboards. (On a Mac keyboard, the left-to-right order would be control - option - command; on a Windows keyboard the order is control - windows - alt.) The Mac operating system provides a way to mitigate this: using the "Modifier Keys" pane in the system keyboard preferences, the user can control what each modifier key is interpreted as. To maximize muscle memory across different keyboards, I have used this setting so that the modifier key order of my Windows-designed keyboard matches the Mac default:

https://i.imgur.com/NvaVLZY.png

Revision:17329
Is-Local-Build:true
Build-Date:2020-11-22 22:31:51

Identification: JOSM/1.5 (17329 SVN en) Mac OS X 10.14.6
OS Build number: Mac OS X 10.14.6 (18G6032)
Memory Usage: 2094 MB / 10240 MB (695 MB allocated, but free)
Java version: 14.0.1+7, Oracle Corporation, OpenJDK 64-Bit Server VM
Look and Feel: com.apple.laf.AquaLookAndFeel
Screen: Display 722472659 2560x1440 (scaling 1.0x1.0), Display 69733254 1440x900 (scaling 2.0x2.0)
Maximum Screen Size: 2560x1440
Best cursor sizes: 16x16 -> 16x16, 32x32 -> 32x32
Dataset consistency test: No problems found

Attachments (0)

Change History (8)

comment:1 by Don-vip, 4 years ago

Keywords: macosx added

comment:2 by Stereo, 4 years ago

Owner: changed from team to derickson.e@…
Status: newneedinfo

I see you're running JOSM in Oracle's Java 14. Can you please see if you can reproduce this in https://github.com/grischard/josm/releases/download/17329-tested/JOSM-macOS-java15.zip ?

comment:3 by derickson.e@…, 4 years ago

Yes, still experiencing it with that version. Just to confirm, the Java version string when using that version was:

Java version: 15.0.1+9, Azul Systems, Inc., OpenJDK 64-Bit Server VM

Is that correct?

comment:4 by derickson.e@…, 4 years ago

Yes, still experiencing it with that version. Just to confirm, the Java version string when using that version was:

Java version: 15.0.1+9, Azul Systems, Inc., OpenJDK 64-Bit Server VM

Is that correct?

comment:5 by Stereo, 4 years ago

That is correct, thank you.

comment:6 by Stereo, 4 years ago

Owner: changed from derickson.e@… to Stereo
Status: needinfoassigned

comment:7 by simon04, 4 years ago

Ticket #20692 has been marked as a duplicate of this ticket.

comment:8 by Stereo, 2 years ago

Keywords: macos added; macosx removed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as assigned The owner will remain Stereo.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from Stereo to the specified user. Next status will be 'new'.
Next status will be 'needinfo'. The owner will be changed from Stereo to derickson.e@….
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.

Add Comment


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