mirror of
https://github.com/microsoft/vscode.git
synced 2026-10-06 03:31:19 +01:00
fix console error when compact and navigating menu
This commit is contained in:
1 parent
d98f650edf
commit
56109c8aef
1 file changed
+2
-2
@@ -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