mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-04 22:00:42 +03:00
Apply suggestions from code review
Co-Authored-By: David Baker <dbkr@users.noreply.github.com>
This commit is contained in:
parent
42c6818f95
commit
550ee216c6
1 changed files with 2 additions and 2 deletions
|
@ -371,8 +371,8 @@ export default class BasicMessageEditor extends React.Component {
|
|||
this._onFormatAction("quote");
|
||||
handled = true;
|
||||
// redo
|
||||
} else if ((modKey && event.key === Key.Y) ||
|
||||
(IS_MAC && event.shiftKey && event.key === Key.Z)) {
|
||||
} else if ((!IS_MAC && modKey && event.key === Key.Y) ||
|
||||
(IS_MAC && modkey && event.shiftKey && event.key === Key.Z)) {
|
||||
if (this.historyManager.canRedo()) {
|
||||
const {parts, caret} = this.historyManager.redo();
|
||||
// pass matching inputType so historyManager doesn't push echo
|
||||
|
|
Loading…
Reference in a new issue