Maptool: Keyboard shortcuts not working on macOS

Created on 10 Nov 2019  路  15Comments  路  Source: RPTools/maptool

Describe the bug
A number of keyboard shortcuts are not working on macOS, for example:

To Reproduce

  • Shift-Cmd-P does not switch between the Show As Player modes.
  • Cmd-G does not show grid or switch grid off.
  • etc.

Expected behavior
That all keyboard shortcuts should work as indicated in the menus.

Screenshots
n/a

MapTool Info

  • Version: 1.5.6, 1.5.7-rc1
  • Install: New

Desktop (please complete the following information):

  • OS: MacOS
  • Version 10.15.1 (but did not work with earlier versions either, i.e. 10.14

Additional context
n/a

bug tested

All 15 comments

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:

  • Fog-of-War (Cmd-W)
  • FoW: Expose only at waypoints (Shift-Cmd-W)
  • Show as Player (Shift-Cmd-P)
  • Show Movement Distances (Cmd-D)
  • Show Light Sources (Cmd-K)
  • Show Grid (Cmd-G)
  • Lock Player Movement (Shift-Cmd-L)

Not verified:

  • Center Players on Current View (Cmd-F)
  • Enforce Players to Current Map (Cmd-E)

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:

  • Show Grid (Cmd-G)
  • Show as Player (Shift-Cmd-P)

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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Lovewyrm picture Lovewyrm  路  4Comments

mrkwnzl picture mrkwnzl  路  9Comments

Azhrei picture Azhrei  路  9Comments

si-lang picture si-lang  路  4Comments

jfranciscoap picture jfranciscoap  路  8Comments