library(shinyAce) shinyUI( pageWithSidebar( headerPanel("ShinyAce with Hotkeys"), sidebarPanel( helpText(HTML("

AceEditor with hotkeys. The two defined hotkeys in this demo are F1 which is bound to the ace_help_key input, and CMD(CTRL)+SHIFT+Enter which is bound to the ace_run_key input. Select the text editor and try out either of the hotkeys.

Created using shinyAce.")), tags$hr(), verbatimTextOutput("log") ), mainPanel( aceEditor( outputId = "ace", value = "Some text ...", hotkeys = list( help_key = "F1", run_key = list( win = "Ctrl-R|Ctrl-Shift-Enter", mac = "CMD-ENTER|CMD-SHIFT-ENTER" ) ) ) ) ) )