Merge pull request #3372 from matrix-org/bwindels/fix-command-tab-complete
New composer: fix tab-complete in commands
This commit is contained in:
commit
4329d8c4ef
3 changed files with 11 additions and 6 deletions
|
@ -40,6 +40,11 @@ export default class AutocompleteWrapperModel {
|
|||
return this._getAutocompleterComponent().hasSelection();
|
||||
}
|
||||
|
||||
hasCompletions() {
|
||||
const ac = this._getAutocompleterComponent();
|
||||
return ac && ac.countCompletions() > 0;
|
||||
}
|
||||
|
||||
onEnter() {
|
||||
this._updateCallback({close: true});
|
||||
}
|
||||
|
|
|
@ -465,10 +465,6 @@ export class CommandPartCreator extends PartCreator {
|
|||
}
|
||||
|
||||
class CommandPart extends PillCandidatePart {
|
||||
acceptsInsertion(chr, i) {
|
||||
return PlainPart.prototype.acceptsInsertion.call(this, chr, i);
|
||||
}
|
||||
|
||||
get type() {
|
||||
return "command";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue