mirror of
https://github.com/mum4k/termdash.git
synced 2025-04-28 13:48:51 +08:00
Change "invalid" to "unsupported" in comments
This commit is contained in:
parent
95719be9f6
commit
6246aba1f7
@ -108,7 +108,7 @@ func convKey(event *tcell.EventKey) terminalapi.Event {
|
|||||||
|
|
||||||
// convMouse converts a tcell mouse event to the termdash format.
|
// convMouse converts a tcell mouse event to the termdash format.
|
||||||
// Since tcell supports many combinations of mouse events, such as multiple mouse buttons pressed at the same time,
|
// Since tcell supports many combinations of mouse events, such as multiple mouse buttons pressed at the same time,
|
||||||
// this function returns nil if the event is invalid for termdash.
|
// this function returns nil if the event is unsupported by termdash.
|
||||||
func convMouse(event *tcell.EventMouse) terminalapi.Event {
|
func convMouse(event *tcell.EventMouse) terminalapi.Event {
|
||||||
var button mouse.Button
|
var button mouse.Button
|
||||||
x, y := event.Position()
|
x, y := event.Position()
|
||||||
@ -170,7 +170,7 @@ func convResize(event *tcell.EventResize) terminalapi.Event {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// toTermdashEvents converts a tcell event to the termdash event format.
|
// toTermdashEvents converts a tcell event to the termdash event format.
|
||||||
// This function returns nil if the event is invalid for termdash.
|
// This function returns nil if the event is unsupported by termdash.
|
||||||
func toTermdashEvents(event tcell.Event) []terminalapi.Event {
|
func toTermdashEvents(event tcell.Event) []terminalapi.Event {
|
||||||
switch event := event.(type) {
|
switch event := event.(type) {
|
||||||
case *tcell.EventInterrupt:
|
case *tcell.EventInterrupt:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user