mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
fix console error when compact and navigating menu
This commit is contained in:
@@ -698,7 +698,7 @@ export class MenuBar extends Disposable {
|
||||
|
||||
private focusPrevious(): void {
|
||||
|
||||
if (!this.focusedMenu) {
|
||||
if (!this.focusedMenu || this.numMenusShown === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -728,7 +728,7 @@ export class MenuBar extends Disposable {
|
||||
}
|
||||
|
||||
private focusNext(): void {
|
||||
if (!this.focusedMenu) {
|
||||
if (!this.focusedMenu || this.numMenusShown === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user