﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
20140	JOSM inconsistently respects remapped macOS modifier keys	derickson.e@…	Stereo	"==== 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:

[[Image(https://i.imgur.com/NvaVLZY.png, 600px)]]

{{{
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
}}}"	defect	assigned	normal		Core shortcuts			template_report macos	
