DOC: document addShortcut click option (#12467)

This commit is contained in:
Joffrey JAFFEUX 2021-03-22 09:51:45 +01:00 committed by GitHub
parent 4857891ecf
commit c3e76da90a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -194,6 +194,8 @@ export default {
* - path - a specific path to limit the shortcut to .e.g /latest
* - postAction - binds the shortcut to fire the specified post action when a
* post is selected
* - click - allows to provide a selector on which a click event
* will be triggered, eg: { click: ".topic.last .title" }
**/
addShortcut(shortcut, callback, opts = {}) {
// we trim but leave whitespace between characters, as shortcuts