R/use_keys.R

Defines functions useKeys

Documented in useKeys

#' Use Keys in your application
#'
#' This function adds the {keys} dependencies to your application
#'
#' @return An html singleton
#' @export
#'
#' @importFrom htmltools singleton tagList
useKeys <- function(){
  singleton(
    tagList(
      html_dependency_mousetrap(),
      html_dependency_keys()
    )
  )
}

Try the keys package in your browser

Any scripts or data that you put into this service are public.

keys documentation built on July 12, 2021, 1:05 a.m.