Skip to content

Commit

Permalink
Resolve feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
marcellamaki committed May 20, 2022
1 parent 8dc1b3d commit 8cdef91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/styles/trackInputModality.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function setUpEventHandlers(disableFocusRingByDefault) {
true
);

document.body.addEventListener('mouseup', () => {
document.body.addEventListener('mousedown', () => {
hadClickEvent = true;
hadKeyboardEvent = false;
});
Expand All @@ -130,6 +130,7 @@ function setUpEventHandlers(disableFocusRingByDefault) {
'blur',
() => {
globalThemeState.inputModality = null;
document.body.setAttribute('modality', '');
},
true
);
Expand Down

0 comments on commit 8cdef91

Please sign in to comment.