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

Enter/Return with alt-right + "v" does not always work #13

Closed
korbinian90 opened this issue Aug 13, 2020 · 9 comments · Fixed by #24
Closed

Enter/Return with alt-right + "v" does not always work #13

korbinian90 opened this issue Aug 13, 2020 · 9 comments · Fixed by #24

Comments

@korbinian90
Copy link

Another problem I ran into:

When I try to press Return via alt-right + "v" often nothing happens, I can press as often as I want. Only after pressing "Enter" two times it starts working.

Debug Log:
I placed the curser in a new window (google notes in chrome)
and tried to press Return via alt-right + "v" -> nothing happens
I press "Enter" on the keyboard -> nothing happens
I press "Enter" on the Keyboard again -> new line appears
I press alt-right + "v" -> new line appears

Layout: neo
symmetricalLevel3Modifiers: 0
returnKeyAsMod3R: 0
tabKeyAsMod4L: 0
capsLockEnabled: 1
shiftLockEnabled: 0
level4LockEnabled: 0
qwertzForShortcuts: 1
swapLeftCtrlAndLeftAlt: 0
swapLeftCtrlLeftAltAndLeftWin: 0
supportLevels5and6: 1
capsLockAsEscape: 0
mod3RAsReturn: 0
mod4LAsTab: 0
debugWindow: 1

key down sc 541 vk 0xa2 0x20 0 (Ctrl left)

key down sc 56 vk 0xa5 0x21 0 (Alt right)
injected sc 541 vk 0xa2 0x90 0 (Ctrl left)
injected sc 0 vk 0xa5 0x90 0 (Alt right)

key down sc 47 vk 0x56 0x0 0 (A-Z)
injected sc 0 vk 0xd 0x11 0 (Return)
key up sc 47 vk 0x56 0x80 0 (A-Z)
key up sc 541 vk 0xa2 0x80 0 (Ctrl left)
key up sc 56 vk 0xa5 0x81 0 (Alt right)

key down sc 28 vk 0xd 0x0 0 (Return)
key up sc 28 vk 0xd 0x80 0 (Return)

key down sc 28 vk 0xd 0x0 0 (Return)
key up sc 28 vk 0xd 0x80 0 (Return)

key down sc 541 vk 0xa2 0x20 0 (Ctrl left)

key down sc 56 vk 0xa5 0x21 0 (Alt right)
injected sc 541 vk 0xa2 0x90 0 (Ctrl left)
injected sc 0 vk 0xa5 0x90 0 (Alt right)

key down sc 47 vk 0x56 0x0 0 (A-Z)
injected sc 0 vk 0xd 0x11 0 (Return)
key up sc 47 vk 0x56 0x80 0 (A-Z)
key up sc 541 vk 0xa2 0x80 0 (Ctrl left)
key up sc 56 vk 0xa5 0x81 0 (Alt right)

@MaxGyver83
Copy link
Owner

That's even stranger than your other bug 😄

The debugging output looks like AltGr+v is being sent the same way twice and same for the physical Enter key. I have no idea why Chromes accepts the input sometimes and sometimes it doesn't. I don't know how to fix this.

@MaxGyver83
Copy link
Owner

What you could try:

  • Open the developer tools in Chrome (press F12) when you are in Google Notes.
  • Select the Console and enter: document.addEventListener('keydown', e => console.log(e), true);
  • Focus the browser main window.
  • Press AltGr+v and Enter and other keys and observe the console output.

@korbinian90
Copy link
Author

It also happens here, when answering. I can reliably reproduce it on my machine, when I click with the mouse outside the window and then to where I want to write and press AltGr+v. I couldn't reproduce the problem in Firefox, notepad or MS Word, so it seems to be only Chrome related. I tested with and without quertzForShortcuts and the problem occurs in both configurations.

I tested in Chrome (google notes), but couldn't find anything strange myself. Here is the output:
image
I pressed 2 times AltGr+v (nothing happens)
then 2 times Enter then (the second one produces a newline)
then AltGr+v (a new line appears)

More detail for the log output:
image
image
image
image

@MaxGyver83
Copy link
Owner

The only difference I see is that AltGr+v is seen as key: "Enter", code: "" and Enter is seen as key: "Enter", code: "Enter".

I made a test version that sends code: "Enter" for AltGr+v: https://maximilian-schillinger.de/neo-llkh-enter.exe

Please tell me if this solves your issue!

@korbinian90
Copy link
Author

Thanks for compiling the new version. Unfortunately it is still the same issue. In chrome I see that it sends code: "Enter".
As it appears only in chrome (and chrome apps like hangouts), and it's easy to fix with pressing Enter, it's no big problem.

@korbinian90
Copy link
Author

problem also in visual studio code

@fw623
Copy link

fw623 commented Aug 30, 2020

problem also in visual studio code

You can try this workaround if you haven't tried it already.

@korbinian90
Copy link
Author

You can try this workaround if you haven't tried it already.

Thanks for the suggestion!
I tried it, but the "keyboard.dispatch" setting doesn't seem to exist in VSCode 1.48.2 under Windows 10: Unknown Configuration Setting.

And following along the thread I found someone else who doesn't have the setting, but unfortunately no other solution for that case.

@MaxGyver83
Copy link
Owner

Apparently, this setting is only valid for Mac and Linux: microsoft/vscode#102570 (comment)

Keybindings are handled differently in Windows, Linux and MacOS: https://github.com/microsoft/vscode/wiki/Keybinding-Issues

Do you have the same issue with NeoVars?

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

Successfully merging a pull request may close this issue.

3 participants