We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54accfd commit 950a573Copy full SHA for 950a573
src/renderer/components/OptimizeTable/index.tsx
@@ -168,9 +168,11 @@ export default function OptimizeTable({
168
169
const handleRowClick = useCallback(
170
(e: React.MouseEvent<HTMLTableRowElement>, rowIndex: number) => {
171
- const isCtrlKey = e.ctrlKey || e.metaKey;
172
- const isShiftKey = e.shiftKey;
173
- handleRowSelection(rowIndex, isCtrlKey, isShiftKey);
+ if (e.button === 0) {
+ const isCtrlKey = e.ctrlKey || e.metaKey;
+ const isShiftKey = e.shiftKey;
174
+ handleRowSelection(rowIndex, isCtrlKey, isShiftKey);
175
+ }
176
},
177
[handleRowSelection]
178
);
0 commit comments