Skip to content

robotgo.AddEvent("mleft") also executes if the "right arrow" key is pressed #237

Open
@JojiiOfficial

Description

@JojiiOfficial
  • Robotgo version (or commit ref): b5f6d20
  • Go version: 1.13
  • Gcc version: 8.3.0
  • Operating system and bit: Debian 64bit
  • Resolution: 2880x1620
  • Can you reproduce the bug at Examples:
    • Yes (provide example code)
    • No
    • Not relevant

This event fires on left-mouse-button and on pressing "arrow - right" on my keyboard. But I guess it should only run if the left-mouse-button is pressed?

for {
	lmb := robotgo.AddEvent("mleft")
	if lmb {
	    fmt.Println("click")
        }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions