core: add meta key

Some applications have features (like typing Unicode codepoints in foot)
that can only be used with key presses. Add a Meta key to allow the user
to always send a keypress.
This commit is contained in:
Richard Acayan 2024-09-04 21:31:04 -04:00
parent 0ebf6a8d5b
commit f3ba955ae4
3 changed files with 28 additions and 6 deletions

View file

@ -97,7 +97,7 @@ struct Label<'a> {
small: bool,
}
const LABELS: [Label; 21] = [
const LABELS: [Label; 22] = [
Label { label: "Alt",
secondary: true, small: true, },
Label { label: "Ctrl",
@ -112,6 +112,8 @@ const LABELS: [Label; 21] = [
secondary: true, small: true, },
Label { label: "Ins",
secondary: true, small: true, },
Label { label: "Meta",
secondary: true, small: true, },
Label { label: "\u{2190}", // LEFTWARDS ARROW
secondary: true, small: false, },
Label { label: "\u{2191}", // UPWARDS ARROW