Remove now unused code
This commit is contained in:
parent
6cb59f7071
commit
6e4c3bfe56
1 changed files with 17 additions and 26 deletions
|
@ -702,8 +702,6 @@ export default class MessageComposerInput extends React.Component {
|
|||
this.direction = 'Previous';
|
||||
} else if (ev.keyCode === KeyCode.RIGHT) {
|
||||
this.direction = 'Next';
|
||||
} else {
|
||||
this.direction = '';
|
||||
}
|
||||
|
||||
switch (ev.keyCode) {
|
||||
|
@ -1197,12 +1195,9 @@ export default class MessageComposerInput extends React.Component {
|
|||
};
|
||||
|
||||
onVerticalArrow = (e, up) => {
|
||||
if (e.ctrlKey || e.shiftKey || e.altKey || e.metaKey) {
|
||||
return;
|
||||
}
|
||||
if (e.ctrlKey || e.shiftKey || e.altKey || e.metaKey) return;
|
||||
|
||||
// Select history only if we are not currently auto-completing
|
||||
if (this.autocomplete.state.completionList.length === 0) {
|
||||
// Select history
|
||||
const selection = this.state.editorState.selection;
|
||||
|
||||
// selection must be collapsed
|
||||
|
@ -1223,10 +1218,6 @@ export default class MessageComposerInput extends React.Component {
|
|||
});
|
||||
}
|
||||
}
|
||||
} else {
|
||||
this.moveAutocompleteSelection(up);
|
||||
e.preventDefault();
|
||||
}
|
||||
};
|
||||
|
||||
onTab = async (e) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue