View source: R/keyboardShortcut.R
Creates a keyboard shortcut in a shiny app. It binds like an actionButton or actionLink. So you can trigger reactive events like you would with a button or link.
1 2 | keyboardShortcut(inputId, key, ctrl = FALSE, alt = FALSE,
shift = FALSE, description = NULL)
|
inputId |
The input slot that will be used to access the value. |
key |
The key that must be pressed to trigger the keyboard shortcut |
ctrl |
Does the Ctrl button have to be pressed? |
alt |
Does the Alt button have to be pressed? |
shift |
Does the shift button have to be pressed? |
description |
A description of what the shortcut does to include in the legend |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.