2

Those classic MS-DOS games over at archive.org has brought back many memories. Being able to play them on a current computer, through the browser, is so much fun.

Since these games were certainly not written for being run through a browser, they require the use of certain keys that are already mapped to browser functions. In Das Boot, for example, F1 brings up the periscope view.
Unfortunately, F1 is also Chrome's Help button, so it pops open a new tab with the help site. Kinda sucks when you just want a quick peek in the periscope before firing off those torpedoes.

So is there any way to disable the built-in Fx functionality?

2

1 Answer 1

1

Using node-webkit create the following package.json file:

{
    "name" : "mykiosk",
    "window" : {
        "fullscreen" : true,
        "toolbar" : false
    },
    "main" : "http://the-one-and-only-allowed.url/"
}

Launch with: ./nw

All function keys are blocked. Ctrl-N/T do not create tabs. it is quite nice

One last javascript/onload trick to disable the right-click context menu:

window.oncontextmenu = function(ev) {
  ev.preventDefault();
  ev.stopPropogation();
  return false;
}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .