From 3c1226a2274c3991a90d0a8795bb61489e879c8b Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 16 Apr 2021 01:21:48 +0900 Subject: [PATCH] internal/uidriver/js: Bug fix: SetCursorMode didn't work --- internal/uidriver/js/ui_js.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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