require(shiny)
print('testing ctrlDpressed')
shinyServerFunction = function(input, output, session) {
observeEvent(input$ctrlDpressed, {}) # just to flush the ctrl-D press.
shinyDebuggingPanel::makeDebuggingPanelOutput(
session, toolsInitialState = TRUE,
condition='ctrlDpressed === true')
includeScript('www/KeyHandler.js')
}
shinyServer(shinyServerFunction)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.