@vericus/slate-kit-bind-hotkey

a slate helper plugin to associate hotkey(s) to slate change

Usage no npm install needed!

<script type="module">
  import vericusSlateKitBindHotkey from 'https://cdn.skypack.dev/@vericus/slate-kit-bind-hotkey';
</script>

README

@Vericus / slate-kit-plugins-hotkey

a slate helper plugin to associate hotkey(s) to slate change

Documentation

A Slate plugin to attach (a) hotkey(s) to slate change.

sample options:

{
  hotkeys: ['ctrl+right', 'ctrl+e'],
  change: (change) => change.collapseToEnd()
}

License

MIT © slate-kit