Skip to content

Commit

Permalink
Allow multi-sorting when the shift key is pressed
Browse files Browse the repository at this point in the history
  • Loading branch information
egbertbouman committed Dec 18, 2024
1 parent cf9ab15 commit c18d472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tribler/ui/src/components/ui/simple-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function getHeader<T>(name: string, translate: boolean = true, addSorting
<div className='select-none flex'>
<span
className="cursor-pointer hover:text-black dark:hover:text-white flex flex-row items-center"
onClick={() => column.toggleSorting()}>
onClick={(e) => column.toggleSorting(undefined, e.shiftKey)}>
{translate ? t(name) : name}
{column.getIsSorted() === "desc" ? (
<ArrowDownIcon className="ml-2" />
Expand Down

0 comments on commit c18d472

Please sign in to comment.