Skip to content

Commit

Permalink
Merge pull request #24162 from samh-nl/fix/issue-23508
Browse files Browse the repository at this point in the history
fix: do not focus composer when space is pressed
  • Loading branch information
grgia authored Aug 14, 2023
2 parents e64b931 + dbf4885 commit 1b9d869
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pages/home/report/ReportActionCompose.js
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,11 @@ class ReportActionCompose extends React.Component {
return;
}

// If the space key is pressed, do not focus
if (e.code === 'Space') {
return;
}

// if we're typing on another input/text area, do not focus
if (['INPUT', 'TEXTAREA'].includes(e.target.nodeName)) {
return;
Expand Down

0 comments on commit 1b9d869

Please sign in to comment.