Closed romgrk closed 8 years ago
Hi, thank you for the report.
But it is expected behavior. Neovim/Vim ignores letter cases in input. So <A-J>
is equivalent to <A-j>
.
Please try below:
" Set from command line
:nnoremap <C-L> :echo 'blah, blah, blah'<CR>
" Then enter Ctrl + l (not shifted). I think 'blah, blah, blah' is input.
Ah, sorry, <C-
has different behavior from <A-
. I got it.
I usually use Vim so I know that Neovim can handle Alt + Shift at first time.
@romgrk
I fixed. If you find this bug is still there, please reopen this issue.
Yes, this one should still be open.
But I cannot seem to reopen this issue, the button is not appearing.
Anyway, here is the report:
<A-J>
, while it should send <A-j>
As you can see from the screenshot above the only 2 keys pressed are 18 and 74, which is alt+j.
If you need some inspiration for keyEvents handling and KBEvent to VimKey translation, take a look at my https://github.com/romgrk/keykit. (It's the worst code I've ever written but it does work)
Hmm... OK, I'll check it later again.
KeyEvent.keyCode
is too complecated (but Chrome doesn't implement KeyEvent.key
yet...).
Thank you for the pointer to handling key events.
@romgrk
I tried again and it seems to work well. (I used <A-e>
instead of <A-j>
because I already assign other OS feature to <A-j>
.
Could you try again after pulling master branch and building again?
All good doctor.
OK, thanks.
Steps:
electron example/minimal
orelectron example/markdown
alt-char
wherechar
is any letter, e.g. Alt + jInput to neovim: <A-J>
where we should instead have<A-j>