Revert "fix action list not scrolling" (#295359)

Revert "fix action list not scrolling (#294026)"

This reverts commit 0911b9789f.
This commit is contained in:
Benjamin Pasero
2026-02-14 21:06:51 +01:00
committed by GitHub
parent bd6b93b712
commit c5cf29b332

View File

@@ -411,20 +411,10 @@ export class ActionList<T> extends Disposable {
focusPrevious() {
this._list.focusPrevious(1, true, undefined, this.focusCondition);
const focused = this._list.getFocus();
if (focused.length > 0) {
this._list.reveal(focused[0]);
}
this._list.domFocus();
}
focusNext() {
this._list.focusNext(1, true, undefined, this.focusCondition);
const focused = this._list.getFocus();
if (focused.length > 0) {
this._list.reveal(focused[0]);
}
this._list.domFocus();
}
acceptSelected(preview?: boolean) {
@@ -457,7 +447,6 @@ export class ActionList<T> extends Disposable {
}
private onFocus() {
this._list.domFocus();
const focused = this._list.getFocus();
if (focused.length === 0) {
return;