palantir / blueprint

A React-based UI toolkit for the web
https://blueprintjs.com/
Apache License 2.0
20.73k stars 2.18k forks source link

Is there a way to programmatically trigger the Hotkey / Keyboard Shortcuts dialog to open without pressing the '?' key? #6026

Open martinshaw opened 1 year ago

martinshaw commented 1 year ago

Environment

Question

Is there a way to programmatically trigger the Hotkey / Keyboard Shortcuts dialog to open without pressing the '?' key?

Of course, we are wishing to keep the '?' key functionality. We would like to add a menu item to our main navigation bar's menu which informs the user of the existence of the Hotkey / Keyboard Shortcuts dialog.

Claviera Raccourcijs

adidahiya commented 1 year ago

It's possible but it's not well-documented. See https://github.com/palantir/blueprint/issues/1590#issuecomment-781536016

martinshaw commented 1 year ago

Wonderful @adidahiya. Will give that a try. Thanks.

martinshaw commented 1 year ago

It works. Closing the issue. Thanks for the fast reply!

adidahiya commented 1 year ago

Leaving this open as it seems like a common question and I'd like to track adding this bit to the documentation.