1
0
mirror of https://github.com/mum4k/termdash.git synced 2025-04-25 13:48:50 +08:00

Change "invalid" to "unsupported" in comments

This commit is contained in:
kvnxiao 2020-03-01 14:24:10 -05:00
parent 95719be9f6
commit 6246aba1f7

View File

@ -108,7 +108,7 @@ func convKey(event *tcell.EventKey) terminalapi.Event {
// 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,
// 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 {
var button mouse.Button
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.
// 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 {
switch event := event.(type) {
case *tcell.EventInterrupt: