diff --git a/internal/uidriver/js/ui_js.go b/internal/uidriver/js/ui_js.go index 57c39a71b..8bf6c9a62 100644 --- a/internal/uidriver/js/ui_js.go +++ b/internal/uidriver/js/ui_js.go @@ -136,12 +136,12 @@ func (u *UserInterface) SetCursorMode(mode driver.CursorMode) { switch mode { case driver.CursorModeVisible: - if u.cursorHidden { + if !u.cursorHidden { return } u.cursorHidden = false case driver.CursorModeHidden: - if !u.cursorHidden { + if u.cursorHidden { return } u.cursorHidden = true