aceHotkeyHandler: Add an handler to a hotkey in an aceEditor component

View source: R/addHandler.r

aceHotkeyHandlerR Documentation

Add an handler to a hotkey in an aceEditor component

Description

Add an handler to a hotkey in an aceEditor component

Usage

aceHotkeyHandler(id, fun, ..., app = getApp(),
  if.handler.exists = c("replace", "add", "skip")[1],
  session = getAppSession(app), no.authentication.required = FALSE)

Arguments

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.


skranz/shinyEvents documentation built on Jan. 1, 2023, 9:25 a.m.