message: clean up onVerticalArrow
diff: @@ -1206,7 +1206,15 @@ export default class MessageComposerInput extends React.Component {
  onVerticalArrow = (e, up) => {
  if (e.ctrlKey || e.shiftKey || e.metaKey) return;
  - // Select history
  + if (e.altKey) {
  + // Try select composer history
  + const selected = this.selectHistory(up);
  + if (selected) {
  + // We're selecting history, so prevent the key event from doing anything else
  + e.preventDefault();
  + }
  + } else if (!e.altKey && up) {
  + // Try edit the latest message
  const selection = this.state.editorState.selection;
  // selection must be collapsed
  @@ -1214,7 +1222,6 @@ export default class MessageComposerInput extends React.Component {
  const document = this.state.editorState.document;
  // and we must be at the edge of the document (up=start, down=end)
  - if (up) {
  if (!selection.anchor.isAtStartOfNode(document)) return;
  if (!e.altKey) {
  @@ -1227,14 +1234,7 @@ export default class MessageComposerInput extends React.Component {
  event: editEvent,
  });
  }
  - return;
  - }
  }
  -
  - const selected = this.selectHistory(up);
  - if (selected) {
  - // We're selecting history, so prevent the key event from doing anything else
  - e.preventDefault();
  }
  };
  