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

Creating square brackets #412

Open
LenniM opened this issue Jun 27, 2022 · 3 comments
Open

Creating square brackets #412

LenniM opened this issue Jun 27, 2022 · 3 comments
Milestone

Comments

@LenniM
Copy link

LenniM commented Jun 27, 2022

Version
2.1.1

Short overview
Not able to create square brackets through "pressKey"-event and "type"-event.

Issue occurs on
This issue occurred on the Windows operating system.

Replication

const { keyboard , Key} = require('@nut-tree/nut-js');

const ret = globalShortcut.register('Up', async () => {

        await keyboard.type(Key.RightBracket)

        // await keyboard.pressKey(Key.RightBracket) --> isn't working either
        // await keyboard.releaseKey(Key.RightBracket) --> isn't working either

})
@s1hofmann s1hofmann added this to the TipTap milestone Jun 30, 2022
@github-actions
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jul 31, 2022
@s1hofmann
Copy link
Member

Hey @LenniM 👋

Could you please provide some additional context?

Which keyboard layout are you using?
And does it generate any unexpected output instead?

Best regards

Simon

@LenniM
Copy link
Author

LenniM commented Aug 5, 2022

Hi @s1hofmann,

thanks for commenting!

Sure, I am trying to create a shortcut, triggering a specific action for a specific program (which is triggered through "]").

I am using a German keyboard layout (which could be the cause of the problem).
When I use "keyboard.type(Key.RightBracket)" it returns a 9.

The typical way to create a "]" on a German keyboard is pressing right alt and 9. Thus, I have tried to create a bracket through using "keyboard.type(Key.Alt, Key.RightBracket)" - but that also generates a 9.

It doesn't return any error or any other unexpected output.

I hope this helps. If you have any further questions, then feel free to ask.

Best regards

Lenni

@github-actions github-actions bot removed the stale label Aug 6, 2022
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