Bug 576492 - [Win32] Home/End keys do not jump to the first/last character when performing a rename refactoring
Summary: [Win32] Home/End keys do not jump to the first/last character when performing...
Status: REOPENED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.21   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2021-10-07 02:37 EDT by Wolfgang Schramm CLA
Modified: 2021-10-12 05:01 EDT (History)
2 users (show)

See Also:


Attachments
Rename variable in e420 with Home/End keys (65.49 KB, video/mp4)
2021-10-08 02:22 EDT, Wolfgang Schramm CLA
no flags Details
Works for me (1.66 MB, video/webm)
2021-10-12 05:01 EDT, Mickael Istria CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfgang Schramm CLA 2021-10-07 02:37:03 EDT
When renaming a java variable with Alt+Shift+R, with version 4.21 the Home/End keys are jumping to the first and last character in the line. 

Until version 4.20 the cursor jumped with the Home/End keys to the first and last character of the renamed variable.

This regression bug is just as frustrating as this 4.21 bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=576052 (which was solved very fast) because I use the keyboard very often to navigate in the editor
Comment 1 Andrey Loskutov CLA 2021-10-07 03:41:12 EDT
I can't reproduce on 4.22 with the fixed bug 576052, so I assume that this is another side effect of the original issue.

*** This bug has been marked as a duplicate of bug 576052 ***
Comment 2 Wolfgang Schramm CLA 2021-10-08 02:22:25 EDT
Created attachment 287279 [details]
Rename variable in e420 with Home/End keys
Comment 3 Wolfgang Schramm CLA 2021-10-08 02:33:34 EDT
I tested this issue with eclipse-SDK-I20211007-0350-win32-x86_64 and it is not solved. 

In the video https://bugs.eclipse.org/bugs/attachment.cgi?id=287279 you can see how the Home/End keys are working in Eclipse 4.20. With eclipse-SDK-I20211007-0350-win32-x86_64 the cursor is moved with the Home key to the 1st character of the line and with the End key to the last character of the line and not within the renaming field characters.

I also tested bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=576052 with eclipse-SDK-I20211007-0350-win32-x86_64 and this is OK now.
Comment 4 Andrey Loskutov CLA 2021-10-08 08:50:48 EDT
As said, I can't reproduce on Linux, so assuming this is a Windows specific issue => moving to platform text. 

@Mickael, this is most likely something around recently changed selection code.
Comment 5 Wolfgang Schramm CLA 2021-10-09 02:20:11 EDT
I can confirm that this issue do not occur on Linux in I20211007-0350-linux-gtk-x86_64
Comment 6 Mickael Istria CLA 2021-10-11 16:19:37 EDT
I'll try to look at it; but unfortunately, my Windows VM seems is not able to start today. So it means I'll have to recreate a VM and identify whether there is a cause on the system before starting to setup a development environment and then reproducing and fixing the issue, so that will take a lot of time, and I'm pretty sure I'll be interrupted a lot in the meantime.
Basically, I cannot commit to a prompt resolution of this issue. Someone who's using Windows would be much more efficient.
Comment 7 Mickael Istria CLA 2021-10-12 05:01:40 EDT
Created attachment 287301 [details]
Works for me

I could setup a new VM.
And I tried Eclipse SDK I20211010-1800 and could *not* reproduce the issue, as you can see in the attached video.