Node-webkit desktop app restrictions

I need to create desktop application that will run in full screen. And you should not have possibility to close it using alt-f4 or any other keyboard combination.

Is it possible to do using node-webkit or it has any restrictions?

Upvotes: 1

Views: 1086

Answers (2)

acmzero
acmzero

Reputation: 36

Old question but, I have the same situation with an app and and node web-kit, using ubuntu+xmonad I can't close using Alt+F4 unless I declare the hotkey under Javascript.

This is the content of my package.json

"window": {
  "fullscreen": true,
  "toolbar": false,
  "kiosk": true
}

Upvotes: 0

Henrik Karlsson
Henrik Karlsson

Reputation: 5723

I do not belive it is possible to block Alt + F4, though I have not tried myself.

They do have a kiosk mode, which sounds like it is what you are looking for, but even in kiosk mode you can exit with Alt + F4.

After entering Kiosk mode, node-webkit will become fullscreen, and there will be no ways to quit by clicking mouse.

On Linux and Windows, users can still quit node-webkit by pressing keys like Alt + F4 and Control + Alt + Del, currently node-webkit does not block those keys be because it would make node-webkit behave like virus and be blocked by AV software.

Quoted from https://github.com/rogerwang/node-webkit/wiki/The-Kiosk-mode

Upvotes: 1

Related Questions