diff --git a/packages/block-library/src/paragraph/use-enter.js b/packages/block-library/src/paragraph/use-enter.js index 952d6436f5f90..19de495609831 100644 --- a/packages/block-library/src/paragraph/use-enter.js +++ b/packages/block-library/src/paragraph/use-enter.js @@ -8,7 +8,7 @@ import { useSelect, useDispatch, useRegistry } from '@wordpress/data'; import { store as blockEditorStore } from '@wordpress/block-editor'; import { hasBlockSupport, createBlock } from '@wordpress/blocks'; -export function useExitOnEnterAtEnd( props ) { +export function useOnEnter( props ) { const { batch } = useRegistry(); const { moveBlocksToPosition, @@ -48,7 +48,7 @@ export function useExitOnEnterAtEnd( props ) { if ( ! hasBlockSupport( getBlockName( wrapperClientId ), - '__experimentalExitOnEnterAtEnd', + '__experimentalOnEnter', false ) ) { diff --git a/packages/block-library/src/quote/block.json b/packages/block-library/src/quote/block.json index dd04a6b23ddf7..c4726f3cdaa0c 100644 --- a/packages/block-library/src/quote/block.json +++ b/packages/block-library/src/quote/block.json @@ -30,7 +30,7 @@ "supports": { "anchor": true, "__experimentalSlashInserter": true, - "__experimentalExitOnEnterAtEnd": true, + "__experimentalOnEnter": true, "typography": { "fontSize": true, "lineHeight": true,