win-vind icon indicating copy to clipboard operation
win-vind copied to clipboard

[Bug] Accented characters not working

Open aisneto opened this issue 1 year ago • 3 comments

Firstly, I would like to thank you for this great project.

I'm having problems typing accented characters such as "é", "ã", or "ô" using a PT-BR keyboard (the layout is named "ABNT2"). I can type those characters by repeatedly pressing the accent key + letter key in rapid succession, but even this way, I only get maybe two correct letters out of ten. Attempting to type at a normal speed has failed to produce even a single letter correctly. This issue occurs in both Insert and Resident modes, requiring me to completely exit the application when I need to type in Portuguese.

Steps to reproduce:

1- Simply attempt to type an accented character using a Portuguese keyboard layout such as ABNT2. To obtain an accented character under normal circumstances, you only need to press the accent key and the letter key in succession.

Environments

Windows 10 Home Edition Version 22h2 Build 19045.2846 64bits win-vind v 5.0.2 Installed by winget

aisneto avatar Apr 27 '23 20:04 aisneto

So, I tried to program some macros in insert mode using "imap" to access the accented characters. However, when I put any of those in an external macro in my .vindrc (e.g. imap <alt><alt> {é}), win-vind crashes: image

aisneto avatar Apr 28 '23 00:04 aisneto

I am trying to reproduce this issue.

pit-ray avatar Apr 29 '23 14:04 pit-ray

If you can't type accented characters just by running win-vind, then the problem may be similar to #187. Perhaps the delay is caused by the processing speed of the low-level keyboard hook.

The imap crash was fixed in #78, #151.

pit-ray avatar Aug 15 '23 14:08 pit-ray