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

"^^ " appears as "^^^" #12

Closed
korbinian90 opened this issue Aug 13, 2020 · 7 comments
Closed

"^^ " appears as "^^^" #12

korbinian90 opened this issue Aug 13, 2020 · 7 comments

Comments

@korbinian90
Copy link

Firstly, great work! The layout works generally really well!

One bug that I had is that sometimes typing "^^ " is written as "^^^". It seems to depend on the window I'm typing in. It happens every time in the Telegram app on windows (that's where this debug log is from).

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 43 vk 0xbf 0x0 0 (M3 right)

key down sc 20 vk 0x54 0x0 0 (A-Z)
injected sc 20 vk 0xdc 0x10 0
injected sc 0 vk 0x20 0x10 0
key up sc 20 vk 0x54 0x80 0 (A-Z)

key down sc 20 vk 0x54 0x0 0 (A-Z)
injected sc 20 vk 0xdc 0x10 0
injected sc 0 vk 0x20 0x10 0
key up sc 43 vk 0xbf 0x80 0 (M3 right)
key up sc 20 vk 0x54 0x80 0 (A-Z)

key down sc 57 vk 0x20 0x0 0
key up sc 57 vk 0x20 0x80 0

@korbinian90
Copy link
Author

Hm, it might be because of the weird behaviour of this key "^". Without neo2-llkh, I have to press twice that ^^ appears.

And I found a workaround for me for Telegram. If I press "^ ", then "^^" appears.

@MaxGyver83
Copy link
Owner

That's strange.

When you type ^ as Mod3+T, neo-llkh sends first ^ and then space because the QWERTZ ^ is a dead key and only after typing/sending space, it becomes visible (as you already know from QWERTZ). When sending space, neo-llkh.exe only uses the virtual key code (=0x20) of the space bar and leaves the scan code empty (= 0). That's this line in the debugging output:

injected sc 0 vk 0x20 0x10 0

Usually that's not a problem, but maybe it is for Chrome. I made a test version that also sets the scan code of the space bar (only when you enter ^). Could you test it, please?
https://maximilian-schillinger.de/neo-llkh-caret-text.exe

@korbinian90
Copy link
Author

Thanks for compiling it!!
Strangely, it is exactly the same behaviour, no improvement.
But it seem to be restricted to only Telegram.
I would guess that some applications just perform themselvers input manipulation for certain keys...

Einstellungen aus C:\Users\korbi\Desktop\settings.ini:
Layout: neo
symmetricalLevel3Modifiers: 0
returnKeyAsMod3R: 0
tabKeyAsMod4L: 0
capsLockEnabled: 0
shiftLockEnabled: 0
level4LockEnabled: 0
qwertzForShortcuts: 1
swapLeftCtrlAndLeftAlt: 0
swapLeftCtrlLeftAltAndLeftWin: 0
supportLevels5and6: 0
capsLockAsEscape: 0
mod3RAsReturn: 0
mod4LAsTab: 0
debugWindow: 1

key down sc 43 vk 0xbf 0x0 0 (M3 right)

key down sc 20 vk 0x54 0x0 0 (T)
injected sc 20 vk 0xdc 0x10 0
injected sc 57 vk 0x20 0x10 0
key up sc 20 vk 0x54 0x80 0 (T)
key up sc 43 vk 0xbf 0x80 0 (M3 right)

key down sc 43 vk 0xbf 0x0 0 (M3 right)

key down sc 20 vk 0x54 0x0 0 (T)
injected sc 20 vk 0xdc 0x10 0
injected sc 57 vk 0x20 0x10 0
key up sc 20 vk 0x54 0x80 0 (T)
key up sc 43 vk 0xbf 0x80 0 (M3 right)

@thomasgm1971
Copy link

thomasgm1971 commented Aug 15, 2020 via email

@MaxGyver83
Copy link
Owner

@korbinian90 & @thomasgm1971 : Could you check if this issue still occurs in version v0.5.3? It might have been fixed by 51fdd3a.

@thomasgm1971
Copy link

thomasgm1971 commented Feb 1, 2021 via email

@korbinian90
Copy link
Author

I just tested the new version 0.5.3 and I couldn't reproduce the problem. Seems to work perfectly!
Good job and thank you!

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

3 participants