Describe the bug
A number of keyboard shortcuts are not working on macOS, for example:
To Reproduce
Expected behavior
That all keyboard shortcuts should work as indicated in the menus.
Screenshots
n/a
MapTool Info
Desktop (please complete the following information):
Additional context
n/a
Can you check with MT 1.5.0?
Also does it work if you use Ctrl instead of Command?
Downloaded and ran MT 1.5.0. Same problem.
Tried it with Ctrl instead of Command. No difference.
Thanks for checking. We'll try and track it down quickly.
Menu-items tested for which keyboard shortcuts don't work on macOS:
Not verified:
Tested on MT 1.5.7-rc1
Sigh.
Thanks for the additional info.
Thanks for your quick reply!
The most annoying of the verified ones missing are:
Others are nice to haves for me.
But I'll also say that the 1.5 versions of MapTool are awesome! I have been looking at the competition for a long time and think that they all pale in comparison, in particular when it comes to cross-platform support, scriptability and now Iso-maps/-tokens. You guys are doing great!
Yeah. Those are two I use all the time and it would definitely be annoying not having them. :)
Appreciate the kind words!
This appears to be a Java 9+ issue with Macs. Older MT versions also show the issue with 9+ but when running under Java 8 they do work.
Still investigating potential solutions.
After investigation turns out what is happening is several menu items are being called twice when the accelerator key is used.
Searching for this behaviour finds following JDK bug
https://bugs.openjdk.java.net/browse/JDK-8208712
Which occurs in java 9+. Whenever a checkbox menu item is used with the apple menu look and feel (which puts the menu bar at top of the screen) using the accelerator key for that menu item will cause it to be called twice (oh joy!).
If you have a complicated enough scene you probably can observe this with fog of war accelerator key causing the map to flash.
now the next step is for us to work around this bug.
Fix tested under Windows with no negative effects.
I'll see if I can pull and build this branch on my MBP to verify.
Hmm.. No go as I have Java 11 installed. I'll see if I can downgrade..
Successful test reported by @JamzTheMan . Closing.
MT 1.5.7-rc3 fixed all my issues. Thanks for the great work!
That's good to hear. Thanks for reporting it in the first place!