const interactiveNodes = [ 'AUDIO' , 'BUTTON' , 'INPUT' , 'SELECT' , 'TEXTAREA' , 'VIDEO' , ] ; const bespokeInteractive = ( deck ) => { ; ( deck . parent as HTMLElement ) . addEventListener ( 'keydown' , ( e ) => { if ( ! e . target ) return ; const element = e . target as HTMLElement ; if ( interactiveNodes . includes ( element . nodeName ) || element . contentEditable === 'true' ) e . stopPropagation ( ) ; } ) ; } ; export default bespokeInteractive ;