mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-15 01:34:26 +02:00
Bump gocui
This commit is contained in:
28
vendor/github.com/jesseduffield/gocui/tcell_driver.go
generated
vendored
28
vendor/github.com/jesseduffield/gocui/tcell_driver.go
generated
vendored
@ -154,18 +154,20 @@ type gocuiEventType uint8
|
||||
// The 'Mod', 'Key' and 'Ch' fields are valid if 'Type' is 'eventKey'.
|
||||
// The 'MouseX' and 'MouseY' fields are valid if 'Type' is 'eventMouse'.
|
||||
// The 'Width' and 'Height' fields are valid if 'Type' is 'eventResize'.
|
||||
// The 'Focused' field is valid if 'Type' is 'eventFocus'.
|
||||
// The 'Err' field is valid if 'Type' is 'eventError'.
|
||||
type GocuiEvent struct {
|
||||
Type gocuiEventType
|
||||
Mod Modifier
|
||||
Key Key
|
||||
Ch rune
|
||||
Width int
|
||||
Height int
|
||||
Err error
|
||||
MouseX int
|
||||
MouseY int
|
||||
N int
|
||||
Type gocuiEventType
|
||||
Mod Modifier
|
||||
Key Key
|
||||
Ch rune
|
||||
Width int
|
||||
Height int
|
||||
Err error
|
||||
MouseX int
|
||||
MouseY int
|
||||
Focused bool
|
||||
N int
|
||||
}
|
||||
|
||||
// Event types.
|
||||
@ -174,6 +176,7 @@ const (
|
||||
eventKey
|
||||
eventResize
|
||||
eventMouse
|
||||
eventFocus
|
||||
eventInterrupt
|
||||
eventError
|
||||
eventRaw
|
||||
@ -368,6 +371,11 @@ func (g *Gui) pollEvent() GocuiEvent {
|
||||
Ch: 0,
|
||||
Mod: mouseMod,
|
||||
}
|
||||
case *tcell.EventFocus:
|
||||
return GocuiEvent{
|
||||
Type: eventFocus,
|
||||
Focused: tev.Focused,
|
||||
}
|
||||
default:
|
||||
return GocuiEvent{Type: eventNone}
|
||||
}
|
||||
|
Reference in New Issue
Block a user