Keyboard Shortcuts

Boilerstrap also includes the ability to use keyboard shortcuts thanks to built-in support for Keypress.js For example, we can capture the keyboard input of ctrl + f (or by pressing + f on a Mac) and use that shortcut to move the focus to the search field inside the navigation with the following code:

keypress.counting_combo("meta f", function(event) {

Try it now, press: ctrl + f (or + f on a Mac)

All keyboard shortcuts are stored in the /js/boilerstrap.js file. To find out how to add more shortcuts, check out the Keypress.js Documentation

  • Testy

    not working in chrome (the demo ctrl+f)

  • d

    not working in safari 5.1.10