We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3780c0e commit 94247edCopy full SHA for 94247ed
1 file changed
keyboard.go
@@ -28,6 +28,12 @@ type KeyboardEnhancementsMsg struct {
28
Flags int
29
}
30
31
+// SupportsKeyDisambiguation returns whether the terminal supports key
32
+// disambiguation (e.g., distinguishing between different modifier keys).
33
+func (k KeyboardEnhancementsMsg) SupportsKeyDisambiguation() bool {
34
+ return k.Flags > 0
35
+}
36
+
37
// SupportsEventTypes returns whether the terminal supports reporting
38
// different types of key events (press, release, and repeat).
39
func (k KeyboardEnhancementsMsg) SupportsEventTypes() bool {
0 commit comments