window:keyboard_modifiers()¶
Since: Version 20230712-072601-f4abf8fd
The functionality described in this section requires version 20230712-072601-f4abf8fd of wezterm, or a more recent version.
Returns two values; the keyboard modifiers and the key status leds.
Both values are exposed to lua as strings with |
-delimited values
representing the various modifier keys and keyboard led states:
- Modifiers - is the same form as keyboard assignment modifiers
- Leds - possible flags are
"CAPS_LOCK"
and"NUM_LOCK"
. Note that macOS doesn't have a num lock concept.
This example shows the current modifier and led status in the right status area: