mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 22:44:50 +02:00
Implement focus tracking in kitten infrastructure
This commit is contained in:
@@ -113,6 +113,12 @@ func (self *Loop) handle_csi(raw []byte) (err error) {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
} else if csi == "I" || csi == "O" {
|
||||
if self.OnFocusChange != nil {
|
||||
return self.OnFocusChange(csi == "I")
|
||||
}
|
||||
return nil
|
||||
|
||||
}
|
||||
ke := KeyEventFromCSI(csi)
|
||||
if ke != nil {
|
||||
|
||||
Reference in New Issue
Block a user