Skip to content

hook.KeyUp doesn`t work  #677

Open
Open
@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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions