Re: [whatwg] UndoManager: restoring selection after undoing deletion

2011-10-26 Thread Aryeh Gregor
On Wed, Oct 26, 2011 at 4:25 PM, Glenn Maynard wrote: > No text is selected, the user hits control-backspace, and then undo.  The > restored word "world" now may or may not be selected, depending on the UA > and platform. Ah, okay. Got it.

Re: [whatwg] UndoManager: restoring selection after undoing deletion

2011-10-26 Thread Alex Russell
On Thu, Oct 20, 2011 at 12:16 AM, Ryosuke Niwa wrote: > Hi, > The way selection is restored on WebKit after undoing selection is different > from the way it is done on Firefox and Internet Explorer. > Say you had "hello world" and "world" is deleted by an user. When the user > undoes the deletion,

Re: [whatwg] UndoManager: restoring selection after undoing deletion

2011-10-26 Thread Glenn Maynard
On Wed, Oct 26, 2011 at 4:21 PM, Aryeh Gregor wrote: > I was assuming that Ryosuke meant that the word "world" was selected, > and the user hit delete, then undo. So it was selected before the > delete, and undoing should re-select it. > No text is selected, the user hits control-backspace, and

Re: [whatwg] UndoManager: restoring selection after undoing deletion

2011-10-26 Thread Aryeh Gregor
On Wed, Oct 26, 2011 at 4:03 PM, Ehsan Akhgari wrote: >> Say you had "hello world" and "world" is deleted by an user. When the >> user undoes the deletion, WebKit selects "world" whereas Firefox and >> Internet Explorer do not select "world". WebKit's behavior matches >> Mac's NSTextView and we pr

Re: [whatwg] UndoManager: restoring selection after undoing deletion

2011-10-26 Thread Ryosuke Niwa
On Wed, Oct 26, 2011 at 1:03 PM, Ehsan Akhgari wrote: > > Say you had "hello world" and "world" is deleted by an user. When the > > user undoes the deletion, WebKit selects "world" whereas Firefox and > > Internet Explorer do not select "world". WebKit's behavior matches > > Mac's NSTextView and

Re: [whatwg] UndoManager: restoring selection after undoing deletion

2011-10-26 Thread Ehsan Akhgari
> Say you had "hello world" and "world" is deleted by an user. When the > user undoes the deletion, WebKit selects "world" whereas Firefox and > Internet Explorer do not select "world". WebKit's behavior matches > Mac's NSTextView and we probably would like to keep the current > behavior. This con

Re: [whatwg] UndoManager: restoring selection after undoing deletion

2011-10-26 Thread Aryeh Gregor
On Thu, Oct 20, 2011 at 3:16 AM, Ryosuke Niwa wrote: > However, there's no easy way for the user agent to figure out whether a > given transaction wants to select some contents on undo or not. In fact, we > don't even know whether we want to restore selection at all. If an automatic > transaction

[whatwg] UndoManager: restoring selection after undoing deletion

2011-10-20 Thread Ryosuke Niwa
Hi, The way selection is restored on WebKit after undoing selection is different from the way it is done on Firefox and Internet Explorer. Say you had "hello world" and "world" is deleted by an user. When the user undoes the deletion, WebKit selects "world" whereas Firefox and Internet Explorer d