Modify

Opened 3 months ago

Last modified 3 months 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 macosx 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 (6)

comment:1 Changed 3 months ago by Don-vip

Keywords: macosx added

comment:2 Changed 3 months ago by Stereo

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 Changed 3 months ago by derickson.e@…

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 Changed 3 months ago by derickson.e@…

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 Changed 3 months ago by Stereo

That is correct, thank you.

comment:6 Changed 3 months ago by Stereo

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as assigned The owner will remain Stereo.
as The resolution will be set.
to The owner will be changed from Stereo to the specified user.
The owner will change to derickson.e@gmail.com
as duplicate The resolution will be set to duplicate.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.