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 ...

Get Cross-Platform Desktop Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.