Questions tagged [undo-redo]

For issues relating to undo and/or redo operations.

In graphical use interfaces, Undo is a command used to erase the last (text or command) change done to the document reverting it to an older state. Redo is a command that reverses the undo or advances the buffer to a more current state.

Common key bindings for undo include Ctrl+Z or Command-Z, and common key bindings for redo include Ctrl+Y or Command-Shift-Z.

389 questions
9
votes
2 answers

Do we have canvas Modified Event in Fabric.js?

In Fabric.js we have Object modified events like object:modified. Do we have similar event for the entire canvas. Actually I am trying to implement undo and redo features. I am saving the canvas as JSON if something happens on it and loading it…
user2571818
  • 273
  • 4
  • 9
8
votes
1 answer

How to increase undo and redo steps in android studio

How to increase undo and redo steps in android studio? It is limited and I want to increase number of Ctrl Z time.
Amir Hossein Ghasemi
  • 20,623
  • 10
  • 57
  • 53
8
votes
2 answers

Trigger Ctrl+z & Ctrl+y keypress on button click

I have provided two separates button for Ctrl+z and Ctrl+y. I want the Ctrl+z and Ctrl+y functionality to be performed on the click of a button. To achieve this, I am trying to trigger Ctrl+z and Ctrl+y on button click but they are not getting…
Akanksha
  • 81
  • 1
  • 4
8
votes
2 answers

How to implement undo with NSTextview

I want to implement undo action after replacing portion of text in an NSTextView. I am replacing portion of text with following code - (void)omeAction { NSString *fullString = [self.textView string]; NSRange selectedRange = [self.textView…
Johnykutty
  • 12,091
  • 13
  • 59
  • 100
8
votes
3 answers

Extend this Class to Undo/Redo in a Listview

I'm using a thir party code to manage undo/redo operations in a WindowsForm project. I need to extend the Class to manage undo/redo operations in a Listview, this means: · Undo/Redo Add/Delete items and subitems · Undo/Redo Check/Uncheck rows ·…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
7
votes
2 answers

vim undo limited to one step on some hosts

On one of my dev machines I have unlimited undos, I can hold u and go all the way back to when I opened the file. On another, pressing u toggles between the last two changes I made, no more. The first dev machine I have Administrator access to and…
Daren Schwenke
  • 5,428
  • 3
  • 29
  • 34
7
votes
2 answers

How to insert text into a textarea using JavaScript without messing up edit history?

Basically what i want is if a user selects some text in a textarea and presses ctrl + b then the text within the selection should be surrounded by stars. so basically what I want is : 1) textarea content : "hello this is some text" 2) user selects…
sktguha
  • 524
  • 3
  • 21
7
votes
3 answers

How can I access the QUndoStack of a QTextDocument?

How can I access the QUndoStack of a QTextDocument? (For example, I want to be able to add custom QUndoCommand objects to the document's undo stack)
Tony the Pony
  • 40,327
  • 71
  • 187
  • 281
7
votes
3 answers

Disable Undo and Redo in browsers

I would like to disable undo and redo in all browsers using JavaScript. I want to do this as our app has it's own undo and redo history built in. I can already handle key presses to disable undo and redo via a keyboard entry but I would like to…
Aran Mulholland
  • 23,555
  • 29
  • 141
  • 228
6
votes
6 answers

Good collection for implementing Undo/Redo?

I was reading around for undo/redo techniques, I understand how should it be implemented (I found it intuitive). However I'm thinking about the collection that should be used as history, A lot of people use stack, but C# stack is implemented as an…
Francesco Belladonna
  • 11,361
  • 12
  • 77
  • 147
6
votes
1 answer

Change the value of a