Skip to content

Commit

Permalink
Merge pull request #27 from sneakers-the-rat/fix-button-selectors
Browse files Browse the repository at this point in the history
[joss] fix incomplete attribute selectors in keyboard shortcuts
  • Loading branch information
katjaq authored Mar 5, 2024
2 parents a35dcc0 + 48e940a commit df6504b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions thresholdmann.js
Original file line number Diff line number Diff line change
Expand Up @@ -626,22 +626,22 @@ const initKeyboardShortcuts = () => {
case 's':
globals.selectedTool = 'Select';
document.querySelector('#tools').querySelector('.mui-pressed').classList.remove('mui-pressed');
document.querySelector('#tools').querySelector('[title="Select"').classList.add('mui-pressed');
document.querySelector('#tools').querySelector('[title="Select"]').classList.add('mui-pressed');
break;
case 'a':
globals.selectedTool = 'Add';
document.querySelector('#tools').querySelector('.mui-pressed').classList.remove('mui-pressed');
document.querySelector('#tools').querySelector('[title="Add"').classList.add('mui-pressed');
document.querySelector('#tools').querySelector('[title="Add"]').classList.add('mui-pressed');
break;
case 'r':
globals.selectedTool = 'Remove';
document.querySelector('#tools').querySelector('.mui-pressed').classList.remove('mui-pressed');
document.querySelector('#tools').querySelector('[title="Remove"').classList.add('mui-pressed');
document.querySelector('#tools').querySelector('[title="Remove"]').classList.add('mui-pressed');
break;
case 'm':
globals.selectedTool = 'Move';
document.querySelector('#tools').querySelector('.mui-pressed').classList.remove('mui-pressed');
document.querySelector('#tools').querySelector('[title="Move"').classList.add('mui-pressed');
document.querySelector('#tools').querySelector('[title="Move"]').classList.add('mui-pressed');
break;
}
});
Expand Down

0 comments on commit df6504b

Please sign in to comment.