# Updating keymap for existing document

**URL:** <https://discuss.prosemirror.net/t/updating-keymap-for-existing-document/8931>\
**Category:** Uncategorized\
**Created:** [January 9, 2026, 8:43pm UTC](https://discuss.prosemirror.net/t/updating-keymap-for-existing-document/8931 "2026-01-09T20:43:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bencahan](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/bencahan/32/4692_2.png) [@bencahan](https://discuss.prosemirror.net/u/bencahan)\
**Post date:** [January 9, 2026, 8:43pm UTC](https://discuss.prosemirror.net/t/updating-keymap-for-existing-document/8931/1 "2026-01-09T20:43:43Z")

</div>

Curious about the simplest process for replacing the current keymap with an updated version. I allow my users to change the shortcut keys for various commands, and I want to change the keymap to the new shortcuts.

I get that I have to create a new state and update the view, can I do that with just the new plugin list and leave the document alone as is? Since the doc is a part of the state, not sure how I transfer the existing document (which is not changing) to the updated view but with the keymap in reality being the only actual change.

---

<div class="post-metadata">

**Author:** ![marijn](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/marijn/32/15_2.png) [@marijn](https://discuss.prosemirror.net/u/marijn)\
**Post date:** [January 9, 2026, 8:59pm UTC](https://discuss.prosemirror.net/t/updating-keymap-for-existing-document/8931/2 "2026-01-09T20:59:49Z")

</div>

`EditorState.reconfigure` is what you need here. Set things up so that you can recreate your full configuration, but with different keymaps, and pass that to `reconfigure`, then use `updateState` to use that new state in the editor view.
