Apply suggestions from code review

Co-Authored-By: David Baker <dbkr@users.noreply.github.com>
This commit is contained in:
Aaron Raimist 2020-02-24 18:22:07 -06:00 committed by GitHub
parent 42c6818f95
commit 550ee216c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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