Skip to content

Commit

Permalink
Rename so it conveys "exit at end" & "split on middle"
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Apr 20, 2022
1 parent 9921a88 commit 9ae5c6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/block-library/src/paragraph/use-enter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -48,7 +48,7 @@ export function useExitOnEnterAtEnd( props ) {
if (
! hasBlockSupport(
getBlockName( wrapperClientId ),
'__experimentalExitOnEnterAtEnd',
'__experimentalOnEnter',
false
)
) {
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/quote/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"supports": {
"anchor": true,
"__experimentalSlashInserter": true,
"__experimentalExitOnEnterAtEnd": true,
"__experimentalOnEnter": true,
"typography": {
"fontSize": true,
"lineHeight": true,
Expand Down

0 comments on commit 9ae5c6a

Please sign in to comment.