mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-15 07:28:05 +00:00
Revert "fix action list not scrolling" (#295359)
Revert "fix action list not scrolling (#294026)"
This reverts commit 0911b9789f.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user