Skip to content

Commit

Permalink
feat: kitty: support associated text keyboard enhancement
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Aug 15, 2024
1 parent bdb3237 commit 03df14c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions kitty.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,13 +319,13 @@ func parseKittyKeyboard(csi *ansi.CsiSequence) Msg {
}
}
}
// TODO: Associated keys are not support yet.
// if params := csi.Subparams(2); len(params) > 0 {
// r := rune(params[0])
// if unicode.IsPrint(r) {
// key.AltRune = r
// }
// }
if params := csi.Subparams(2); len(params) > 0 {
r := rune(params[0])
if unicode.IsPrint(r) {
key.altRune = key.Rune()
key.Runes = []rune{r}
}
}
if isRelease {
return KeyReleaseMsg(key)
}
Expand Down

0 comments on commit 03df14c

Please sign in to comment.