Suggestion: package as open web app
First of all, this is a really well done port. Thanks you for doing this.
I want to suggest packaging this as an open web app. This would enable BrowserHack to run in Android (as a Cordova/Phonegap app) and Firefox OS.
To work in these runtimes, BrowserHack would need to show a softkeyboard or focus a hidden element to use the system's softkeyboard.
I'd be happy to work on this, if you can guide on which files to touch :-)
A few places you might want to investigate
web/index.html, in preRun you can inject your init functions
win/web/nethack_lib.js is the logic for the whole UI, especially input events are handled with buffer, for the C code to read from.
If you modified nethack_lib.js, you should rebuild the project.
Thanks. I am right to assume that you put your code in web/ also under nethack public license (dat/license)?
Yes, as nethack was originally distributed under Nethack GPL.