client/tags: add [delete] key support in tag input

This commit is contained in:
rr- 2016-07-31 22:35:09 +02:00
parent e291369701
commit 97b217dc31

View file

@ -102,6 +102,10 @@ class TagInputControl extends events.EventTarget {
this._tagInputNode.value = '';
this.addTag(text, SOURCE_USER_INPUT);
},
delete: text => {
this._tagInputNode.value = '';
this.deleteTag(text);
},
verticalShift: -2,
isTaggedWith: tagName => this.isTaggedWith(tagName),
});