Skip to content

Commit

Permalink
Merge pull request #3183 from KorovinQuantori/main
Browse files Browse the repository at this point in the history
Revert changes in heading plugin to make hotkey work
  • Loading branch information
zbeyens authored May 7, 2024
2 parents b5c6640 + ff4a781 commit a20aa4b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/swift-shoes-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@udecode/plate-heading": patch
---

Fix regression: heading hotkeys
4 changes: 2 additions & 2 deletions packages/heading/src/createHeadingPlugin.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {
// onKeyDownToggleElement,
onKeyDownToggleElement,
type PlatePlugin,
createPluginFactory,
} from '@udecode/plate-common/server';
Expand Down Expand Up @@ -33,7 +33,7 @@ export const createHeadingPlugin = createPluginFactory<HeadingsPlugin>({
],
},
handlers: {
// onKeyDown: onKeyDownToggleElement,
onKeyDown: onKeyDownToggleElement,
},
isElement: true,
key,
Expand Down

0 comments on commit a20aa4b

Please sign in to comment.