Open
Description
Add a keyboard shortcut for formatting.
Currently, the cursor position gets lost after pressing it, which makes this feel very awkward. Try to preserve it.
This might only be solved by upgrading to CodeMirror 6 (https://codemirror.net/docs/migration/), which utilizes offsets instead of line coordinates.