forked from charmbracelet/bubbletea
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmod.go
More file actions
27 lines (20 loc) · 675 Bytes
/
mod.go
File metadata and controls
27 lines (20 loc) · 675 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package tea
import "github.com/charmbracelet/x/input"
// KeyMod represents modifier keys.
type KeyMod = input.KeyMod
// Modifier keys.
const (
ModShift = input.ModShift
ModAlt = input.ModAlt
ModCtrl = input.ModCtrl
ModMeta = input.ModMeta
// These modifiers are used with the Kitty protocol.
// XXX: Meta and Super are swapped in the Kitty protocol,
// this is to preserve compatibility with XTerm modifiers.
ModHyper = input.ModHyper
ModSuper = input.ModSuper // Windows/Command keys
// These are key lock states.
ModCapsLock = input.ModCapsLock
ModNumLock = input.ModNumLock
ModScrollLock = input.ModScrollLock // Defined in Windows API only
)