You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-17 17:42:41 +03:00
Apply suggestions from code review
Co-Authored-By: David Baker <dbkr@users.noreply.github.com>
This commit is contained in:
@@ -371,8 +371,8 @@ export default class BasicMessageEditor extends React.Component {
|
|||||||
this._onFormatAction("quote");
|
this._onFormatAction("quote");
|
||||||
handled = true;
|
handled = true;
|
||||||
// redo
|
// redo
|
||||||
} else if ((modKey && event.key === Key.Y) ||
|
} else if ((!IS_MAC && modKey && event.key === Key.Y) ||
|
||||||
(IS_MAC && event.shiftKey && event.key === Key.Z)) {
|
(IS_MAC && modkey && event.shiftKey && event.key === Key.Z)) {
|
||||||
if (this.historyManager.canRedo()) {
|
if (this.historyManager.canRedo()) {
|
||||||
const {parts, caret} = this.historyManager.redo();
|
const {parts, caret} = this.historyManager.redo();
|
||||||
// pass matching inputType so historyManager doesn't push echo
|
// pass matching inputType so historyManager doesn't push echo
|
||||||
|
|||||||
Reference in New Issue
Block a user