From 5d2393c3c13e306cb082365b654c95463d91f3cf Mon Sep 17 00:00:00 2001 From: 1l0 <1l0@users.noreply.github.com> Date: Mon, 28 Aug 2017 23:29:19 +0900 Subject: [PATCH] glfw: Add StickyModes to window.InputMode (resolve #314 #399) (#423) --- internal/ui/ui_glfw.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/ui/ui_glfw.go b/internal/ui/ui_glfw.go index ea335357e..321ea0788 100644 --- a/internal/ui/ui_glfw.go +++ b/internal/ui/ui_glfw.go @@ -88,7 +88,8 @@ func initialize() error { mode = glfw.CursorHidden } currentUI.window.SetInputMode(glfw.CursorMode, mode) - + currentUI.window.SetInputMode(glfw.StickyMouseButtonsMode, glfw.True) + currentUI.window.SetInputMode(glfw.StickyKeysMode, glfw.True) return nil }