@humanspeak/svelte-headless-table
Version:
A powerful, headless table library for Svelte that provides complete control over table UI while handling complex data operations like sorting, filtering, pagination, grouping, and row expansion. Build custom, accessible data tables with zero styling opin
16 lines (15 loc) • 426 B
TypeScript
/**
* Determines if an event is a mouse click with the Shift key held down.
*
* @param event - The DOM event to check.
* @returns True if the event is a MouseEvent with shiftKey pressed, false otherwise.
* @example
* ```typescript
* element.addEventListener('click', (e) => {
* if (isShiftClick(e)) {
* // Handle shift+click
* }
* })
* ```
*/
export declare const isShiftClick: (event: Event) => boolean;