Skip to content

EventHook keyUp does not take effect #311

@luchanghe

Description

@luchanghe
  • Robotgo version (or commit ref): v0.92.1

  • Go version: go1.14.2 windows/amd64

  • Gcc version: gcc version 8.1.0 (x86_64-posix-sjlj-rev0, Built by MinGW-W64 project)

  • Operating system and bit:

  • Resolution:

  • Can you reproduce the bug at Examples:

    • [✔ ] Yes (provide example code)
    • No
    • Not relevant
  • Provide example code:

func main() {
	robotgo.EventHook(hook.KeyUp, []string{"w"}, func(e hook.Event) {
		fmt.Println("w up")
	})
	s := robotgo.EventStart()
	<-robotgo.EventProcess(s)
}
  • Log gist:

Description

Hello, I use keyUp in EventHook. As shown in the code, there is no output when I press w and release it.
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions