Bug 579102 - [Multiple carets, typing] Delete key after Enter key doesn't properly join the lines again
Summary: [Multiple carets, typing] Delete key after Enter key doesn't properly join th...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.23   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: ui
Depends on:
Blocks:
 
Reported: 2022-03-05 04:00 EST by Dirk Steinkamp CLA
Modified: 2022-03-05 04:03 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Steinkamp CLA 2022-03-05 04:00:04 EST
Steps to reproduce in an editor (tried on Windows):

- enter some text, e.g
  ArrayList list1;
  ArrayList list2;

- enter multi-selection mode (e.g. block selection mode, then "to multi-selection")

- create two carets, e.g. by alt+click between ArrayList/list1 and ArrayList/list2

- press Enter -> the line is correctly split for all caret positions

- press Delete 
  -> the joining of the line is not correctly processed: the lines seem unchanged, but the carets are positioned in the right places (actually consistently only the second caret, as the first is somewhat only shown after the window lost focus, and got focus again).

- press Delete again
  -> now the lines are joined

Suspicion: It looks like Enter might insert two whitespaces (cr/lf) (on Windows) into the document, but the Delete key in this occasion doesn't respect that properly and only removes them individually.