You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
Remove now unused code
This commit is contained in:
@@ -702,8 +702,6 @@ export default class MessageComposerInput extends React.Component {
|
|||||||
this.direction = 'Previous';
|
this.direction = 'Previous';
|
||||||
} else if (ev.keyCode === KeyCode.RIGHT) {
|
} else if (ev.keyCode === KeyCode.RIGHT) {
|
||||||
this.direction = 'Next';
|
this.direction = 'Next';
|
||||||
} else {
|
|
||||||
this.direction = '';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (ev.keyCode) {
|
switch (ev.keyCode) {
|
||||||
@@ -1197,12 +1195,9 @@ export default class MessageComposerInput extends React.Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
onVerticalArrow = (e, up) => {
|
onVerticalArrow = (e, up) => {
|
||||||
if (e.ctrlKey || e.shiftKey || e.altKey || e.metaKey) {
|
if (e.ctrlKey || e.shiftKey || e.altKey || e.metaKey) return;
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Select history only if we are not currently auto-completing
|
// Select history
|
||||||
if (this.autocomplete.state.completionList.length === 0) {
|
|
||||||
const selection = this.state.editorState.selection;
|
const selection = this.state.editorState.selection;
|
||||||
|
|
||||||
// selection must be collapsed
|
// selection must be collapsed
|
||||||
@@ -1223,10 +1218,6 @@ export default class MessageComposerInput extends React.Component {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
this.moveAutocompleteSelection(up);
|
|
||||||
e.preventDefault();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
onTab = async (e) => {
|
onTab = async (e) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user