MCPcopy Index your code
hub / github.com/Splidejs/splide / onKeydown

Function onKeydown

src/js/components/Sync/Sync.ts:143–148  ·  view source on GitHub ↗

* Called when any key is pressed on the navigation slide. * * @param Slide - A Slide component. * @param e - A KeyboardEvent object.

( Slide: SlideComponent, e: KeyboardEvent )

Source from the content-addressed store, hash-verified

141 * @param e - A KeyboardEvent object.
142 */
143 function onKeydown( Slide: SlideComponent, e: KeyboardEvent ): void {
144 if ( includes( TRIGGER_KEYS, normalizeKey( e ) ) ) {
145 onClick( Slide );
146 prevent( e );
147 }
148 }
149
150 return {
151 setup: apply(

Callers

nothing calls this directly

Calls 4

includesFunction · 0.90
normalizeKeyFunction · 0.90
preventFunction · 0.90
onClickFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…