mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
parent
538a24d505
commit
37a74f9e41
|
@ -185,6 +185,10 @@ export class ToolBar extends Disposable {
|
|||
});
|
||||
}
|
||||
|
||||
isEmpty(): boolean {
|
||||
return this.actionBar.isEmpty();
|
||||
}
|
||||
|
||||
private getKeybindingLabel(action: IAction): string | undefined {
|
||||
const key = this.lookupKeybindings ? this.options.getKeyBinding?.(action) : undefined;
|
||||
|
||||
|
|
|
@ -230,7 +230,7 @@ export class FilterWidget extends Widget {
|
|||
|
||||
private onInputKeyDown(event: StandardKeyboardEvent, filterInputBox: HistoryInputBox) {
|
||||
let handled = false;
|
||||
if (event.equals(KeyCode.Tab)) {
|
||||
if (event.equals(KeyCode.Tab) && !this.toolbar.isEmpty()) {
|
||||
this.toolbar.focus();
|
||||
handled = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue