You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
This commit is contained in:
@@ -598,6 +598,8 @@ export default class MessageComposerInput extends React.Component {
|
||||
onTab = async (e) => {
|
||||
e.preventDefault(); // we *never* want tab's default to happen, but we do want up/down sometimes
|
||||
if (this.autocomplete.state.completionList.length === 0) {
|
||||
// XXX THIS IS EVIL. We should not be emulating other keys when pressing other keys
|
||||
// This causes issues such as https://github.com/vector-im/riot-web/issues/4445
|
||||
await this.autocomplete.forceComplete();
|
||||
this.onDownArrow(e);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user