Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Ability to register specific shortcuts with Binary server #6

Open
sancarn opened this issue May 26, 2021 · 0 comments
Open

Ability to register specific shortcuts with Binary server #6

sancarn opened this issue May 26, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@sancarn
Copy link
Contributor

sancarn commented May 26, 2021

Current Concerns

  • Node appears to try to optimise stdin flush calls which could mean that a node process goes beyond the 100ms timeout set on the key server.
  • If node is undergoing a heavy ioblocking process key events will be lost to a timeout, instead of being captured by the node process.

It'd be nice to deal with incoming key events as fast as possible, especially if we know what should be captured and what shouldn't be ahead of time..

This enhancement is to request a special utility be added to the Windows/Mac servers:

  public addListener(shortcut: VKey[], callback: ()=>void){
    //implementation to be determined
  }

Options to consider:

  • Build this into the current binaries (Will likely require an extensive re-write, with some kind of serialised structure messaging across the stdio)
  • Build this into seperate binaries (This is more overhead but this would make things a lot simpler)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant