Skip to content

Commit

Permalink
Allow multi-sorting when the shift key is pressed (#8349)
Browse files Browse the repository at this point in the history
  • Loading branch information
egbertbouman authored Dec 18, 2024
2 parents cf9ab15 + c18d472 commit 47cbe16
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 47cbe16

Please sign in to comment.