rhysd / neovim-component

<neovim-editor> WebComponent to embed Neovim to your app with great ease
https://github.com/rhysd/NyaoVim
MIT License
193 stars 18 forks source link

cmd+v to paste not working #32

Closed haifengkao closed 7 years ago

haifengkao commented 8 years ago

Expected

From neovim-component 0.6.2 2016-08-10 12 36 48

Actual

From neovim-component 0.7.3 2016-08-10 12 39 00

Step

rhysd commented 8 years ago

Yes, because Cmd+v is now sent to nvim as <D-v> sequence. If you don't like the behavior, please add disable-meta-key attribute to <neovim-editor> in your HTML. It stops sending <D-...> sequence and app can handle Cmd key.

haifengkao commented 8 years ago

I have added the following

    <neovim-editor id="nyaovim-editor" argv="[[argv]]" font-size="16" font="Powerline Consolas" blink-cursor="false" disable-meta-key="true"></neovim-editor>

But it didn't work :(

rhysd commented 8 years ago

disable-meta-key is a boolean attribute. So please remove ="true" as below:

<neovim-editor ... no-blink-cursor disable-meta-key></neovim-editor>

blink-cursor had the same issue. So I renamed it to no-blink-cursor. Please try it also.

haifengkao commented 8 years ago

still not working

    <neovim-editor id="nyaovim-editor" argv="[[argv]]" font-size="16" disable-meta-key font="Powerline Consolas"></neovim-editor>
rhysd commented 7 years ago

I guess this was fixed by the fix for https://github.com/rhysd/NyaoVim/issues/94.

haifengkao commented 7 years ago

right :)