Discussed here, this fixes the unexpected input map behavior experienced under Java 7. Apparently, clearing the menu bar of it's mapping scheme results on bad calls downstream when a user hits a key on the keyboard.
I suspect that Java 7 handles the instantiating of Swing components differently, prioritizing the menu bar creation, wherein the map wipe that happens further down the launch process corrupts its input scheme. This is all conjecture, of course. While I could dig deeper into this, this patch seems to fix things, so I think I could be of more help elsewhere
Edit: put in a more accurate link of the reported bug
[patch - MapTool] Key map NPE Fix
Moderators: dorpond, trevor, Azhrei
[patch - MapTool] Key map NPE Fix
- Attachments
-
- [patch - MapTool] Input map NPE fix.txt
- (770 Bytes) Downloaded 397 times
Last edited by Lee on Thu Sep 05, 2013 7:30 pm, edited 1 time in total.
My stuff for the community:
Donate to the Mote Project
The Mote Project's G+ community
Mote on Facebook
Fully Customizable Calendar Drop-in
Donate to the Mote Project
The Mote Project's G+ community
Mote on Facebook
Fully Customizable Calendar Drop-in
- JamzTheMan
- Great Wyrm
- Posts: 1872
- Joined: Mon May 10, 2010 12:59 pm
- Location: Chicagoland
- Contact:
Re: [patch - MapTool] Key map NPE Fix
Thanks Lee! I applied the patch and it fixed the issue in my campaigns.
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork
Re: [patch - MapTool] Key map NPE Fix
Heh, commenting out one line fixes it. I love the simple ones (once they've been found, that is!).
Good work, Lee! And thanks for tracking this down! (SVN rev 5943)
Good work, Lee! And thanks for tracking this down! (SVN rev 5943)