I am wondering how to implement the undo of Redo functionality using TextArea. I already have the functionality without support, now I have two questions.
My thinking: I think I should create a new cancellation command when something other than a letter + space is hit. For this, I would use the keyDown event and check if the key is alpha-num if it is not reset by a command.
Sounds good?
keydown , (//).
, , "change" ( , ), ( "" "htmlText", ) undo-buffer ( ). , (, , ).
, / ( ) .
"" , .
1. / /, , , .
, ? , (, Paint.NET) . .
1.) Event.CHANGE TextField . : . TextField , - .
2.) Memento Pattern. , . : undo() redo(). undo() textField.text = oldContent redo() textField.text = newContent. .
textField.text = oldContent
textField.text = newContent
3.) . Event.CHANGE, CHANGE, FOCUS_OUT TextField. TextField. TextField , . TextField FOCUS_OUT:)
Source: https://habr.com/ru/post/1724465/More articles:Install TortoiseHG on Gnome on Ubuntu 9.10? - pythonМожно ли скрыть UIToolbar анимацией? - iphone-sdk-3.0Twitter + oAuth nightmare - iphoneHow to create a binding that includes some kind of formula? - .netОтвет на вызов SoapClient PHP отсутствует часть ответа - soapHow to implement proximity search with a zip code? - searchWhich technology stack to choose - javaProblem with uibutton in UItableViewCell - iphoneHow to make jQuery modal overlay up to 100% transparent? - jqueryWhat is the package structure of the OSGi package? - jarAll Articles