mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 12:16:53 +02: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
@ -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…
x
Reference in New Issue
Block a user