mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-03 07:44:02 +01:00
@@ -223,8 +223,7 @@ export class IconSelectBox extends Disposable {
|
||||
focusNextRow(): void {
|
||||
let nextRowIndex = this.focusedItemIndex + this.numberOfElementsPerRow;
|
||||
if (nextRowIndex >= this.renderedIcons.length) {
|
||||
nextRowIndex = (nextRowIndex % this.numberOfElementsPerRow) + 1;
|
||||
nextRowIndex = nextRowIndex === this.numberOfElementsPerRow ? 0 : nextRowIndex;
|
||||
nextRowIndex = (nextRowIndex + 1) % this.numberOfElementsPerRow;
|
||||
}
|
||||
this.focusIcon(nextRowIndex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user