react-table-library icon indicating copy to clipboard operation
react-table-library copied to clipboard

The useShiftDown hook causes slowdowns on unrelated application components

Open henfiber opened this issue 5 months ago • 0 comments

The hook added in src/table/Table/index.tsx

    // no selection of content (e.g. text) in table if shift is active (e.g. select shift feature)
    const isShiftDown = useShiftDown();

causes slow downs when typing on unrelated components while pressing Shift (e.g., to capitalize latters, or for selection), especially when a large table is present, due to the table rerendering.

Would it possible to add an option to disable this behavior? or alternatively to implement it via a click handler (on the table) and checking if the click event has e.shiftKey (to disable selection as described in the comment)?

henfiber avatar Aug 09 '25 14:08 henfiber