Skip to content

hook.KeyUp doesn`t work  #677

Closed
Closed
@xuruiray

Description

@xuruiray
	for k, v := range mapping {
		hook.Register(hook.KeyDown, []string{k}, func(e hook.Event) {
			keyboardStatus[v-1] = true
			fmt.Println(keyboardStatus)
		})
		hook.Register(hook.KeyUp, []string{k}, func(e hook.Event) {
			keyboardStatus[v-1] = false
			fmt.Println(keyboardStatus)
		})
	}

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