From cfbeea765fd5183a74779eaef7d5f69c586d6a1d Mon Sep 17 00:00:00 2001 From: "Joshua A. Horton" Date: Mon, 13 Mar 2023 10:55:35 +0700 Subject: [PATCH] docs(web): minor note for maintaining functionality --- web/src/engine/keyboard-cache/src/stubAndKeyboardCache.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/src/engine/keyboard-cache/src/stubAndKeyboardCache.ts b/web/src/engine/keyboard-cache/src/stubAndKeyboardCache.ts index 01a10bf930..c71ad88e95 100644 --- a/web/src/engine/keyboard-cache/src/stubAndKeyboardCache.ts +++ b/web/src/engine/keyboard-cache/src/stubAndKeyboardCache.ts @@ -29,6 +29,10 @@ export {withoutPrefix as toUnprefixedKeyboardId}; interface EventMap { /** * Indicates that the specified stub has just been registered within the cache. + * + * Note for future hook: establish a listener for this event during engine init + * to denote the first added stub to facilitate auto-activation of the first + * keyboard to be registered. */ stubAdded: (stub: KeyboardStub) => void;