Skip to content

Macos 14.1 (23B74) don't work #36

@I-Want-ToBelieve

Description

@I-Want-ToBelieve

a.mjs

import { uIOhook, UiohookKey } from 'uiohook-napi'
console.log('1')
uIOhook.on('keydown', (e) => {
  if (e.keycode === UiohookKey.Q) {
    console.log('Hello!')
  }

  if (e.keycode === UiohookKey.Escape) {
    process.exit(0)
  }
})

uIOhook.on('mousedown', (evt) => {
  console.log('mousedown')
  if (evt.button) {
    console.log('mousedown', evt.button)
  }
})

uIOhook.on('mouseup', (evt) => {
  console.log('mouseup')
  if (evt.button) {
    console.log('mouseup', evt.button)
  }
})

uIOhook.start()
console.log('2')
❯ node -v
v18.18.2
❯ node a.mjs
1
2

There is no output either by pressing the mouse button or by the keyboard

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions