Skip to content

Commit

Permalink
Add doc for click modifiers.
Browse files Browse the repository at this point in the history
  • Loading branch information
sainthkh committed Aug 6, 2020
1 parent 80f63e7 commit 255715f
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/tags/usage.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,22 @@ module.exports = function usageOptions (hexo, args) {
withinSubject: () => {
return 'Element to search for children in. If null, search begins from root-level DOM element'
},

ctrlKey: () => {
return 'Activates the control key during click. Aliases: <code>controlKey</code>.'
},

altKey: () => {
return 'Activates the alt key (option key for Mac) during click. Aliases: <code>optionKey</code>.'
},

shiftKey: () => {
return 'Activates the shift key during click.'
},

metaKey: () => {
return 'Activates the meta key (Windows key or command key for Mac) during click. Aliases: <code>commandKey</code>, <code>cmdKey</code>.'
},
}

const blurb = blurbs[opt]
Expand Down
4 changes: 4 additions & 0 deletions source/api/commands/click.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ Option | Default | Description
`force` | `false` | {% usage_options force click %}
`multiple` | `false` | {% usage_options multiple click %}
`timeout` | {% url `defaultCommandTimeout` configuration#Timeouts %} | {% usage_options timeout .click %}
`ctrlKey` | `false` | {% usage_options ctrlKey %}
`altKey` | `false` | {% usage_options altKey %}
`shiftKey` | `false` | {% usage_options shiftKey %}
`metaKey` | `false` | {% usage_options metaKey %}

## Yields {% helper_icon yields %}

Expand Down
4 changes: 4 additions & 0 deletions source/api/commands/dblclick.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ Option | Default | Description
`force` | `false` | {% usage_options force dblclick %}
`multiple` | `true` | {% usage_options multiple dblclick %}
`timeout` | {% url `defaultCommandTimeout` configuration#Timeouts %} | {% usage_options timeout .dblclick %}
`ctrlKey` | `false` | {% usage_options ctrlKey %}
`altKey` | `false` | {% usage_options altKey %}
`shiftKey` | `false` | {% usage_options shiftKey %}
`metaKey` | `false` | {% usage_options metaKey %}

## Yields {% helper_icon yields %}

Expand Down
4 changes: 4 additions & 0 deletions source/api/commands/rightclick.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ Option | Default | Description
`force` | `false` | {% usage_options force rightclick %}
`multiple` | `false` | {% usage_options multiple rightclick %}
`timeout` | {% url `defaultCommandTimeout` configuration#Timeouts %} | {% usage_options timeout .rightclick %}
`ctrlKey` | `false` | {% usage_options ctrlKey %}
`altKey` | `false` | {% usage_options altKey %}
`shiftKey` | `false` | {% usage_options shiftKey %}
`metaKey` | `false` | {% usage_options metaKey %}

## Yields {% helper_icon yields %}

Expand Down

0 comments on commit 255715f

Please sign in to comment.