LastKeyCode reported incorrectly in nwjs on Mac for keys on the numeric pad.
Example: Numeric Keypad key "1" is reported as code 49 and it should be 97.
nwjs on Windows works fantastically and no browsers exhibit this issue on either Mac or Windows.
This issue was initially discussed in post this post.
Attach a Capx
I don't see right off where to upload a .capx to this actual post, please see link above.
Description of Capx
In nwjs on Mac, LastKeyCode is incorrect for numkeys but the Java alert recognizes the key properly. The Java alert is there to effectively eliminate nwjs itself from the equation.
Steps to Reproduce Bug
- Export provided capx to nwjs on Mac.
- Run the app; press a numpad key
- The java alert is correct but the text object in the capx displays the wrong (non numpad) key.
LastKeyCode for numeric keys are reported incorrectly as their non-numeric counterparts
LastKeyCode should be correct for numkeys and consistent with the non-nwjs browser experience
Browsers do not exhibit the issue. Only nwjs on mac. nwjs on Windows works as expected.
I don't see this issue on Safari, Chrome, IE, Edge, Firefox, FireFox Nightly.. everything is fine.
Operating System and Service Pack
MacOS El Capitan, Sierra, High Sierra. Occurs on both VM and real Mac hardware (Macbook Pro 2016)
nwjs 21, 24, 25 have been tested.
Construct 2 Version ID
244, 247 beta
Appreciate whomever checks this one out! This is, unfortunately, a showstopper for my particular application which is targeted primarily for Mac users... and it was determined late in the development cycle that nwjs was going to be a requirement. Thanks, -Steve