Closed kamalkishor1991 closed 9 months ago
i want to work on this issue is this what i should do ?
@AnasMansy yes. You can also put buttons for it along with support for shortcuts. Assigning it to you.
@kamalkishor1991 is this the expected ?
Hi @AnasMansy, This UI is distracting for user. For now, just implement undo/redo using shortcuts.
@kamalkishor1991 @bhujoshi i need help can you help me to know a way to implement undo redo
@AnasMansy You can use undo and redo as a state and append into state once new item is added/removed and remove from state if undo is triggered. For simplicity you can only implement undo first. You can also refer to this question for reference https://stackoverflow.com/questions/64963955/implementing-undo-redo-function-in-react
@AnasMansy can you please create a pull request with your changes?
@kamalkishor1991 sure sorry about that
@kamalkishor1991 I've created a pull request which has the implementation of the required feature that is "ctrl+z" or "ctrl+y". demo
@kamalkishor1991 This feature has already been done on the pull request, right?
yes @shahanahmed86 Thanks for reminding. Closing this issue now.
Ctr/cmd + z and ctr/cmd + y should work accross multiple items while undo and redo. Please refer to google keep behavier of undo and redo for checkboxes.