{"version":3,"file":"activationKey.mjs","names":[],"sources":["../../../../package/common/utils/activationKey.ts"],"sourcesContent":["import type React from 'react';\n\n/**\n * Whether a keydown is a click-equivalent activation of the element the handler sits on.\n *\n * The target check is the important half: keydown bubbles, so without it a Space typed into a\n * nested input activates the container and, once the container calls `preventDefault()`, never\n * reaches the input at all.\n */\nexport function isSelfActivation(event: React.KeyboardEvent): boolean {\n  return event.target === event.currentTarget && (event.key === 'Enter' || event.key === ' ');\n}\n"],"mappings":"aASA,SAAgB,EAAiB,EAAqC,CACpE,OAAO,EAAM,SAAW,EAAM,gBAAkB,EAAM,MAAQ,SAAW,EAAM,MAAQ,IACzF"}