mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
page up/down should only scroll scrollable output when focused
This commit is contained in:
parent
c275a04d43
commit
808dd6dded
|
@ -228,7 +228,9 @@ function onKeypressHandler(e: KeyboardEvent) {
|
|||
if (e.ctrlKey || e.shiftKey) {
|
||||
return;
|
||||
}
|
||||
if (e.code === 'ArrowDown' || e.code === 'End' || e.code === 'ArrowUp' || e.code === 'Home') {
|
||||
if (e.code === 'ArrowDown' || e.code === 'ArrowUp' ||
|
||||
e.code === 'End' || e.code === 'Home' ||
|
||||
e.code === 'PageUp' || e.code === 'PageDown') {
|
||||
// These should change the scroll position, not adjust the selected cell in the notebook
|
||||
e.stopPropagation();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue