Don't fake deletion when CTRL is pressed
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
eb0859c4a6
commit
649b655a48
1 changed files with 3 additions and 1 deletions
|
@ -499,7 +499,9 @@ export default class BasicMessageEditor extends React.Component<IProps, IState>
|
||||||
handled = true;
|
handled = true;
|
||||||
} else if (event.key === Key.BACKSPACE || event.key === Key.DELETE) {
|
} else if (event.key === Key.BACKSPACE || event.key === Key.DELETE) {
|
||||||
this.formatBarRef.current.hide();
|
this.formatBarRef.current.hide();
|
||||||
handled = this.fakeDeletion(event.key === Key.BACKSPACE);
|
if (!event.ctrlKey) {
|
||||||
|
handled = this.fakeDeletion(event.key === Key.BACKSPACE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (handled) {
|
if (handled) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue