Skip to content

Win10/Electron - UiohookKeyboardEvent Hook failing to call. #54

@kered59

Description

@kered59

Platform: Windows 10 / Electron
Issue: Keydown and Keyup Hook fails when a new getUserMediaStream of any device is initialized, however it only fails to do so when the electron client is focused. If the client is not focused while the Stream is allocated to a variable then the hook resumes correct functionality.

To replicate:

In main\index.ts add:

import {uIOhook} from 'uiohook-napi'
uIOhook.start();
uIOhook.on('keydown', (e) => {
console.log(e);
});

In any front end section such as Core add a call to navigator.mediaDevices.getUserMedia() utilizing navigator.mediaDevices.enumerateDevices() for grabbing your local Microphone DeviceId.

Once initialized, no logs are present.

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