Open isubasti opened 5 years ago
Thanks for the report @isubasti, I'll look into this soon.
I'm unable to reproduce this issue. I asked the reporter in slack for a CodeSandbox to reproduce.
Ah, just confirmed that this is a documentation issue. The example in the docs doesn't call next()
when it should. We probably need an else
block for when ctrlKey
is not pressed.
the
onKeyDown
example onslate-code
's doc onlyreturn next()
inside the ctrlKey check therefore some keys are not handled properly see https://slate-js.slack.com/archives/C1RH7AXSS/p1553824026021400