Opened 4 years ago
Last modified 2 years ago
#20140 assigned defect
JOSM inconsistently respects remapped macOS modifier keys
Reported by: | Owned by: | Stereo | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core shortcuts | Version: | |
Keywords: | template_report macos | Cc: |
Description
What steps will reproduce the problem?
- In macOS, go to System Preferences > Keyboard, then click Modifier Keys in the lower-right-corner
- Switch the Option and Command keys, then close all options dialogs
- 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:
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 , 4 years ago
Keywords: | macosx added |
---|
comment:2 by , 4 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
comment:3 by , 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 , 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:6 by , 4 years ago
Owner: | changed from | to
---|---|
Status: | needinfo → assigned |
comment:8 by , 2 years ago
Keywords: | macos added; macosx removed |
---|
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 ?