W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2010

Re: canceling undo/redo events

From: Ojan Vafai <ojan@chromium.org>
Date: Fri, 18 Jun 2010 10:43:06 -0700
Message-ID: <AANLkTil3FAchrsqRyAUowrZF7FyRUUleHCZDvj1MEreB@mail.gmail.com>
To: Tony Chang <tony@chromium.org>
Cc: www-dom@w3.org
On Tue, Jun 15, 2010 at 6:52 PM, Tony Chang <tony@chromium.org> wrote:

> I'm looking for providing a way for sites to cancel text modifications
> caused by undo and redo.  It seems like the textInput event should fire when
> the user invokes undo or redo.  Would it make sense to fire textInput for
> undo/redo and maybe add a new InputMethodCode
> (e.g., DOM_INPUT_METHOD_UNDO_REDO) for this type of input?  This would fire
> before changes were made to the DOM and be cancelable.

I support this, although, I think undo and redo should be separate input

Received on Friday, 18 June 2010 17:43:56 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:16 UTC