From 1427e8a8ec534be6e2a644b0353b1a09d092badd Mon Sep 17 00:00:00 2001 From: Artemio Morales Date: Thu, 4 May 2023 13:15:39 +0200 Subject: [PATCH] Add internal dependencies flag; update comment --- packages/block-library/src/image/interactivity.js | 2 +- packages/block-library/src/utils/interactivity/directives.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/image/interactivity.js b/packages/block-library/src/image/interactivity.js index 5842f787078087..1faad492bd6154 100644 --- a/packages/block-library/src/image/interactivity.js +++ b/packages/block-library/src/image/interactivity.js @@ -34,7 +34,7 @@ store( { // We only want to focus the last focused element // if the lightbox was closed by the keyboard. - // Note: Pressing enter on a button will trigger + // Note: Pressing Enter on a button will trigger // a click event with a blank pointerType. if ( ( event.key && event.type === 'keydown' ) || diff --git a/packages/block-library/src/utils/interactivity/directives.js b/packages/block-library/src/utils/interactivity/directives.js index 8d5af2b5df68a5..1e3381a5c0d12e 100644 --- a/packages/block-library/src/utils/interactivity/directives.js +++ b/packages/block-library/src/utils/interactivity/directives.js @@ -3,6 +3,9 @@ */ import { useContext, useMemo, useEffect } from 'preact/hooks'; import { deepSignal, peek } from 'deepsignal'; +/** + * Internal dependencies + */ import { createPortal } from './portals.js'; /**