1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-27 02:25:28 +03:00

window: add some comments about xkd lookups

This commit is contained in:
Wez Furlong 2022-01-02 00:52:46 -07:00
parent e8967d9c17
commit 822202b7be

View File

@ -352,6 +352,11 @@ fn build_physkeycode_map(keymap: &xkb::Keymap) -> HashMap<Keycode, PhysKeyCode>
// See <https://abaines.me.uk/updates/linux-x11-keys> for info on
// these names and how they relate to the ANSI standard US keyboard
// See also </usr/share/X11/xkb/keycodes/evdev> on a Linux system
// to examine the mapping. FreeBSD and other unixes will use a different
// set of keycode values.
// We're using the symbolic names here to look up the keycodes that
// correspond to the various key locations.
for (name, phys) in &[
("ESC", PhysKeyCode::Escape),
("FK01", PhysKeyCode::F1),