Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function to convert a KeyboardEvent to key string #377

Open
NCC1701M opened this issue Jun 22, 2022 · 1 comment
Open

Function to convert a KeyboardEvent to key string #377

NCC1701M opened this issue Jun 22, 2022 · 1 comment

Comments

@NCC1701M
Copy link

The lib should support the function to convert a KeyboardEvent to a key string.

For example:

hotkeys("*", (evt, handler) => {
   console.log("You've pressed: " + handler.toKeyString());
  // Example output: You've pressed: ctrl+a+s
});
@msimic
Copy link

msimic commented Jun 24, 2022

I added a similar issue many months ago, but there were no replies:

#360

User friendliness and customisation suffer because of lack of this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants