Skip to content

Commit

Permalink
I. #1261 close tabs on middle click
Browse files Browse the repository at this point in the history
  • Loading branch information
dcdenu4 committed Aug 11, 2023
1 parent e395df2 commit 2b60fa8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion workbench/src/renderer/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,17 @@ export default class App extends React.Component {
key={id}
className={id === activeTab ? 'active' : ''}
>
<Nav.Link eventKey={id}>
<Nav.Link
eventKey={id}
onAuxClick={(event) => {
event.stopPropagation();
event.preventDefault();
if (event.button === 1) {
// middle mouse button clicked, close tab
this.closeInvestModel(id);
}
}}
>
{statusSymbol}
{` ${job.modelHumanName}`}
</Nav.Link>
Expand Down

0 comments on commit 2b60fa8

Please sign in to comment.