highlight_keys: Highlight keys

Description Usage Arguments Examples

View source: R/highlight_keys.R

Description

Draw attention to keys in a ggkeyboard.

Usage

1
highlight_keys(ggkeyboard, keys, colour = "yellow", fill = NA, size = 1, ...)

Arguments

ggkeyboard

An input keyboard from ggkeyboard.

keys

Keys to highlight. Key names are available from the key column of the data passed to ggkeyboard.

colour

Highlight outline colour.

fill

Highlight fill colour.

size

Highlight outline signs.

...

Additional options, passed to geom_rect.

Examples

1
2
3
4
5
## Not run: 
ggkeyboard(tkl) %>%
  highlight_keys(c("Alt Left", "Shift Left", "M"))

## End(Not run)

sharlagelfand/ggkeyboard documentation built on Dec. 20, 2020, 9:56 p.m.