Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix Console Scroll Lock is disabled with key "End" without CTRL #648 #649

Merged
merged 2 commits into from
Sep 11, 2023

Conversation

jukzi
Copy link
Contributor

@jukzi jukzi commented Aug 28, 2023

only ctrl+end should disable Scroll Lock

#648

@github-actions
Copy link
Contributor

github-actions bot commented Aug 28, 2023

Test Results

       42 files  ±0         42 suites  ±0   1h 2m 25s ⏱️ + 10m 52s
  3 770 tests ±0    3 766 ✔️ ±0    3 💤 ±0  1 ±0 
11 313 runs  ±0  11 283 ✔️ ±0  27 💤 ±0  3 ±0 

For more details on these failures, see this check.

Results for commit 5b84d71. ± Comparison against base commit 3baaffe.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@HeikoKlare HeikoKlare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that only CTRL+END should disable scroll lock (and not just pressing END).
The change works as expected.

One observation: Pressing DOWN still disables scroll lock. Personally, I find this quite unintuitive (just like pressing END disabling scroll lock). So I would prefer to apply the CTRL mask check to both END and DOWN/BOTTOM here.

@jukzi
Copy link
Contributor Author

jukzi commented Sep 1, 2023

So I would prefer to apply the CTRL mask check to both END and DOWN/BOTTOM here.

If you reach the bottom of the log with the down key it was intentional to end scroll lock again. Therefore for "down" there is the additional condition checkEndOfDocument(). - However to my experience that condition sometimes yield true to early - when coming near to the end. Would be another topic to fix that.

@HeikoKlare
Copy link
Contributor

I see. I mistook the check for SWT.BOTTOM to be related to pressing the arrow down button, but it's actually another condition that also checks for end of document, as you point to. So nothing to address in this PR.

@jukzi jukzi merged commit 5531532 into eclipse-platform:master Sep 11, 2023
@jukzi jukzi deleted the ConsoleEnd branch September 11, 2023 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants