O'Reilly logo

Cross-Platform Desktop Applications: Using Node, Electron, and NW.js by Paul B. Jensen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 14. Binding on keyboard shortcuts

This chapter covers

  • Learning how NW.js and Electron work with keyboard shortcuts
  • Adding keyboard shortcuts to a 2D game
  • Adding global hotkey shortcuts

Power users of applications (and users of Vim) will tell you that learning keyboard shortcuts is invaluable for using apps in a fast and productive manner. For other apps, like arcade games, they can also be an essential interface method.

Programmatically binding keyboard shortcuts to your desktop app in Electron and NW.js offers your users faster ways to perform common tasks, takes some of UI scanning out of the user experience, and makes your apps easier and more pleasant to use. In this chapter, we’ll explore how to add keyboard shortcuts to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required