Bug: Backspace deletes wrong text in pre

Leon Stringer <[email protected]>
Newsgroups gmane.comp.web.amaya.general
Message-ID <20080804120058.TMFQ18637.aamtaout04-winn.ispmail.ntl.com@smtp.ntlworld.com>
Hi,

If you select a line of text in a 'pre' element and press the 
Backspace key, the characters before the selection are deleted, not
the highlighted text as expected.

Test case:

1. Create a new XHTML document.

2. Select Insert->Preformatted (pre) from the menu.

3. Type a few words, press enter, then type some more words. E.g.

   Testing testing testing<Enter>
   Testing testing testing

4. Select all characters on the second line with the mouse (i.e. so
   that the whole line is selected).

5. Press Backspace.

Expected results:

   The second line is deleted.

Actual result:

   The last character of the first line is deleted.

Regards,

Leon...

-----------------------------------------
Email sent from www.virginmedia.com/email
Virus-checked using McAfee(R) Software and scanned for spam
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.