From 6246aba1f7a842753d8daed7a4b58aa81e6ee7d8 Mon Sep 17 00:00:00 2001 From: kvnxiao Date: Sun, 1 Mar 2020 14:24:10 -0500 Subject: [PATCH] Change "invalid" to "unsupported" in comments --- terminal/tcell/event.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terminal/tcell/event.go b/terminal/tcell/event.go index 99fe5ff..a778dfe 100644 --- a/terminal/tcell/event.go +++ b/terminal/tcell/event.go @@ -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: