Skip to content

Commit

Permalink
Fix regression of text copying from text and comment fields
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtcode committed Aug 24, 2023
1 parent 51733b3 commit a2cabba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/components/common/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,12 @@ function Toolbar({ onCommand }) {
if (!shift && !alt && mod) {
if (key === 'b') {
onCommand('bold');
event.preventDefault();
}
else if (key === 'i') {
onCommand('italic');
event.preventDefault();
}
event.preventDefault();
}
}

Expand Down

0 comments on commit a2cabba

Please sign in to comment.