Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #6837 from SimonBrandner/fix/ctrl-backspace
Browse files Browse the repository at this point in the history
Don't `fakeDeletion()` when `CTRL` is pressed
  • Loading branch information
turt2live authored Sep 20, 2021
2 parents e4e696f + 4eda5b1 commit 5b8279d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/views/rooms/BasicMessageComposer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,9 @@ export default class BasicMessageEditor extends React.Component<IProps, IState>
handled = true;
} else if (event.key === Key.BACKSPACE || event.key === Key.DELETE) {
this.formatBarRef.current.hide();
handled = this.fakeDeletion(event.key === Key.BACKSPACE);
if (!event.ctrlKey && !event.metaKey) {
handled = this.fakeDeletion(event.key === Key.BACKSPACE);
}
}

if (handled) {
Expand Down

0 comments on commit 5b8279d

Please sign in to comment.