tagify icon indicating copy to clipboard operation
tagify copied to clipboard

Control + Z is not undoing the action of a tag addition

Open andrii-myronenko opened this issue 4 years ago • 1 comments

Prerequisites

  • [x] I am running the latest version
  • [x] I checked the documentation and found no answer
  • [x] I checked to make sure that this issue has not already been filed

💥 Demo Page

https://jsbin.com/kepojuj/8/edit?html,js,output

Explanation

When we try to add a tag and and press Ctrl+Z

  • What is the expected behavior? The tag is removed and the cursor is placed at the beginning of the input

  • What is happening instead? Nothing is removed, but the cursor is placed at the start of the textarea

andrii-myronenko avatar Mar 01 '21 15:03 andrii-myronenko

well.. I never thought somebody will press Ctrl+Z or "undo" since it's only one-key to click the backspace button so I didn't implement it to remove tags which were added.

My goal back then when I've implemented Ctrl+Z was to do the opposite, which is to bring back tags which were deleted, which there is no other way to do besides "undo", where to opposite, which you are asking, can be done by other means

I currently do not have the capacity to add further functionality which I believe very few will benefit from it

yairEO avatar Mar 01 '21 18:03 yairEO