mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
page up/down should only scroll scrollable output when focused
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user