diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index e253a0a..9401d06 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -10,10 +10,10 @@ jobs: runs-on: ${{ matrix.os }} steps: - - name: Set up Go 1.14 + - name: Set up Go 1.15 uses: actions/setup-go@v1 with: - go-version: 1.14 + go-version: 1.15 id: go - name: Check out code into the Go module directory diff --git a/appveyor.yml b/appveyor.yml index 09ec168..7f46dbe 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -34,7 +34,7 @@ environment: PATH: C:\msys64\mingw32\bin\;C:\Program Files (x86)\NSIS\;%PATH% # - COMPILER: MINGW_W64 # ARCHITECTURE: x64 - GOVERSION: 1.14.6 + GOVERSION: 1.15.2 # GOPATH: c:\gopath # scripts that run after cloning repository diff --git a/go.mod b/go.mod index f3163d8..4c06c0e 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module github.com/robotn/gohook go 1.13 -require github.com/vcaesar/tt v0.10.0 +require github.com/vcaesar/tt v0.10.1 diff --git a/go.sum b/go.sum index 91c4e9b..37a9ae7 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,2 @@ -github.com/vcaesar/tt v0.10.0 h1:jPtFiRRnCOXVakd5ujCed2dwWwTs91wh8W1iHeUIfc0= -github.com/vcaesar/tt v0.10.0/go.mod h1:GHPxQYhn+7OgKakRusH7KJ0M5MhywoeLb8Fcffs/Gtg= +github.com/vcaesar/tt v0.10.1 h1:0DEl+XkyXivEwb/7jIYhDQ1g7KtMYqD/ZqABcMwC3wo= +github.com/vcaesar/tt v0.10.1/go.mod h1:GHPxQYhn+7OgKakRusH7KJ0M5MhywoeLb8Fcffs/Gtg= diff --git a/hook.go b/hook.go index 15b4563..189f41c 100644 --- a/hook.go +++ b/hook.go @@ -102,7 +102,9 @@ var ( func allPressed(pressed map[uint16]bool, keys ...uint16) bool { for _, i := range keys { // fmt.Println(i) - return !pressed[i] + if !pressed[i] { + return false + } } return true