Merge pull request #6837 from SimonBrandner/fix/ctrl-backspace

Don't `fakeDeletion()` when `CTRL` is pressed
pull/21833/head
Travis Ralston 2021-09-20 08:34:31 -06:00 committed by GitHub
commit 5b8279dd16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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) {