Input Hotkey API

Allows keyboard shortcuts (hotkeys) to be bound to an element's click event.


    class="btn btn-default"
    onclick="alert('B is for Banana!')">
    Press "B" on your keyboard

    class="btn btn-default"
    onclick="confirm('Shift gears...?')">
    Press "Shift + R" on your keyboard

Javascript API

If you use a selector other than a button or a link, you will need to add the hotkeyVisible property to the hotkey config.

    hotkey: 'ctrl+s, cmd+s',
    hotkeyVisible: false,
    callback: doSomething

Keep informed

Sign up to our newsletter to receive updates on Winter CMS releases, new features in the works, and much more.
We'll never spam or give this address away.

Latest blog post

The Winter CMS Web Installer is now available!

Published June 17, 2021
We are super excited to announce that our new Web-based Installer is finally available for download, to make it super easy to get your next Winter CMS project started!

View this post Read all posts

Latest Winter CMS release


Released April 26, 2021
3 UX/UI Improvements, 19 API Changes, 23 Bug Fixes, 3 Security Improvements, 4 Translation Improvements, 1 Community Improvement, 2 Dependencies

View details View all releases