mark
mark

Reputation: 62746

How to make text, number and date html input fields support Ctrl+Z (undo) in a consistent fashion?

The text input field appears to support the Ctrl+Z (undo) fully.

The number and date input field only supports it, if the value has been typed into the field in question. If, however, it was selected by means of the associated helper control (i.e. the range control for the number fields and the calendar control for the date fields), then Ctrl+Z does not work.

Can anyone advice how to make the number and date fields support Ctrl+Z no matter how the value is entered by the user?

Thanks.

P.S.

I am currently using jquery and chrome.

EDIT1

I am using <input type='number' ... and <input type='date' ... It is entirely possible that I should use something else (what?)

EDIT2

I am talking about interactive actions only, not script based changes.

Upvotes: 1

Views: 1260

Answers (1)

Aaron Digulla
Aaron Digulla

Reputation: 328594

Undo is a weak spot in HTML5 applications. There is no simple solution because undo is ultimately application dependent (just like in desktop apps).

See this question for some solutions: Implementing undo in a web app

Upvotes: 1

Related Questions