-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Player is able to advance initiative with Spacebar? #233
Comments
OS? Java version? MapTool version? |
No idea; I didn't grab any of that good info as it was the middle of a session. I've sent him a ping on our Discord server so I'll add it here when I have it. We were using 1418 at the time, so it's the embedded Java. |
Skimming through old issues and found this. My group struggled with this for a very long time. The initiative would sometimes randomly advance without any of us knowing why. We found it was when someone hit the space bar to active the shared pointer. Here is how I duplicate the problem. When a player owns two consecutive tokens on the initiative, if they click the next button for the first token, then hit the space bar before clicking anywhere else, they will advance the initiative. If a GM clicks the Next button and then hits the space bar before clicking anywhere else, they can advance the initiative indefinitely just using the space bar. Currently using Windows 10 and Maptool 1.9.3 |
I confirmed this behavior with 1.8.4 as well. In fact, I just opened one of my campaigns, and as the GM, I advanced the initiative using the next button in the initiative panel, and then if I immediately hit the space bar, it will advance the initiative, as if it is actually clicking down on the next button, because every space literally clicks on the button (as it shows the animation that it is clicked). Another observation: if I click any of the buttons in the initiative panel, and then hit the space bar, the space does the same to them as well - the space bar becomes the left mouse button on the last button clicked. |
This is still present in MT 1.10. Hitting the space-bar activates the last UI element that was clicked on. I believe this is the default behavior for JButtons. The Initiative window just happens to be the only one were there are buttons that have actions where this matters. So if you click on Pause Initiative, each press of space-bar will toggle the Pause status. Same for advance/rewind initiative. |
In tonight's game, a player was able to advance initiative by pressing the Spacebar. It's not clear where the mouse focus was, although the player disconnecting and reconnecting fixed the problem. I tried activating the Init Panel and hitting the Spacebar and it had no effect; other players reported the same. So it was just this one player. We're sure they were logged in as a Player and not GM (the GM is using a password to prevent accidentally logging in the wrong way).
The text was updated successfully, but these errors were encountered: