|
|
|
|
|
|
|
|
) |
|
|
) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
resetTypingSpeed <- function(inputId, session = getDefaultReactiveDomain()) { |
|
|
|
|
|
session$sendInputMessage("typing", TRUE) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
ui <- fluidPage( |
|
|
ui <- fluidPage( |
|
|
# textAreaInput("typing", "Type here..."), |
|
|
# textAreaInput("typing", "Type here..."), |
|
|
typingSpeedInput("typing", "Type here..."), |
|
|
typingSpeedInput("typing", "Type here..."), |
|
|
|
|
|
|
|
|
output$debug <- renderPrint(input$typing) |
|
|
output$debug <- renderPrint(input$typing) |
|
|
|
|
|
|
|
|
observeEvent(input$reset, { |
|
|
observeEvent(input$reset, { |
|
|
session$sendInputMessage("typing", TRUE) |
|
|
|
|
|
|
|
|
resetTypingSpeed("typing") |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|