This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 262725 - End key does not move caret to end of line for wrapped line
Summary: End key does not move caret to end of line for wrapped line
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Miloslav Metelka
URL:
Keywords: UI, USABILITY
Depends on:
Blocks:
 
Reported: 2016-07-08 02:43 UTC by emi
Modified: 2016-09-18 13:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Caret (254.01 KB, image/png)
2016-07-08 02:43 UTC, emi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description emi 2016-07-08 02:43:44 UTC
Created attachment 160311 [details]
Caret

1) put caret on long wrapped line 
2) press 'End' key

expected: caret moves at the end of the wrapped line
actual(bug): caret remains within the wrapped line and seems to move at the beginning of the next inner line (see screenshot)

By comparison, Home key works and always moves the caret at the beginning of the line.
Comment 1 Svata Dedic 2016-08-12 12:43:26 UTC
It seems that the space on which the text wraps forms is consumed by the virtual linefeed; so in theory, the caret is positioned well - after the last character in the row (space), that is wrapped to newline ... so the caret goes effectively at the beginning of the new line.

But it looks ugly. Even worse, if one types [space] at the beginning of a wrapped line part, the space is added at the *end* of the preceding line.

Reassinging to editor/painting, perhaps LineBegin/End action or even offset/model mappings need to be changed.