From 97b217dc31b01fbb065cf06298c9277051570b52 Mon Sep 17 00:00:00 2001 From: rr- Date: Sun, 31 Jul 2016 22:35:09 +0200 Subject: [PATCH] client/tags: add [delete] key support in tag input --- client/js/controls/tag_input_control.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/js/controls/tag_input_control.js b/client/js/controls/tag_input_control.js index 4fd6ea68..da768973 100644 --- a/client/js/controls/tag_input_control.js +++ b/client/js/controls/tag_input_control.js @@ -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), });