aceHotkeyHandler | R Documentation |
Add an handler to a hotkey in an aceEditor component
aceHotkeyHandler(id, fun, ..., app = getApp(), if.handler.exists = c("replace", "add", "skip")[1], session = getAppSession(app), no.authentication.required = FALSE)
id |
name of the button |
fun |
function that will be called if button is pressed. The function will be called with the following arguments: keyId: the id assigned to the hotkey editorId: the id of the aceEditor widget selection: if a text is selected, this selection text: the text of the aceEditor widget cursor: a list with the current cursor position: row and column with index starting with 0 session: the current session object |
... |
extra arguments that will be passed to fun when the event is triggered. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.