Skip to content

Commit

Permalink
fix Console Scroll Lock is disabled with key "End" without CTRL #648
Browse files Browse the repository at this point in the history
only ctrl+end should disable Scroll Lock

#648
  • Loading branch information
EcljpseB0T authored and jukzi committed Sep 11, 2023
1 parent f385650 commit 594133a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,9 @@ public void keyPressed(KeyEvent e) {
setScrollLock(true);
} else if ((e.keyCode == SWT.PAGE_UP || e.keyCode == SWT.ARROW_UP) && !checkStartOfDocument()) {
setScrollLock(true);
} else if (e.keyCode == SWT.END || e.keyCode == SWT.BOTTOM) {
setScrollLock(false);// selecting END makes it reveal the
// end
} else if ((e.keyCode == SWT.END && (e.stateMask & SWT.CTRL) != 0) || e.keyCode == SWT.BOTTOM) {
// pressing CTRL+END reveals the end
setScrollLock(false);
} else if ((e.keyCode == SWT.PAGE_DOWN || e.keyCode == SWT.ARROW_DOWN) && checkEndOfDocument()) {
// unlock if Down at the end of document
setScrollLock(false);
Expand Down

0 comments on commit 594133a

Please sign in to comment.