Skip to content

Commit 8934ecc

Browse files
committed
Tab / Shift+Tab should remain in picker (fixes microsoft#46661)
1 parent 0af3876 commit 8934ecc

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/vs/workbench/browser/parts/quickinput/quickInput.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,18 @@ export class QuickInputService extends Component implements IQuickInputService {
156156
dom.EventHelper.stop(e, true);
157157
this.close();
158158
break;
159+
case KeyCode.Tab:
160+
if (!event.altKey && !event.ctrlKey && !event.metaKey) {
161+
const inputs = this.container.querySelectorAll('input');
162+
if (event.shiftKey && event.target === inputs[0]) {
163+
dom.EventHelper.stop(e, true);
164+
inputs[inputs.length - 1].focus();
165+
} else if (!event.shiftKey && event.target === inputs[inputs.length - 1]) {
166+
dom.EventHelper.stop(e, true);
167+
inputs[0].focus();
168+
}
169+
}
170+
break;
159171
}
160172
}));
161173

0 commit comments

Comments
 (0)