RMichelsen / Nvy

Nvy - A Neovim client in C++
MIT License
332 stars 28 forks source link

Fix <C-6> (and the rest of <C-[0-9]>) #91

Closed Zorbn closed 1 year ago

Zorbn commented 1 year ago

Nvim needed the number keys to be sent with NvimSendSysChar so that it would process C-6, and other control + number combinations. Kind of like '/' and ';', except those vary with different keyboard layouts, and number keys do not.

This fixes #89 by allowing C-6 to act as C-^ like it normally does in Nvim. It also allows C-[0-9] to be mapped by the user.

RMichelsen commented 1 year ago

These locale and virtual key issues are frustrating, I am not sure if the best way to solve this is by inserting special cases for everything, but I don't have a better idea at the moment and it's better than the keys not working so I will merge. Thanks!