提交 8934ecc3 编写于 作者: C Christof Marti

Tab / Shift+Tab should remain in picker (fixes #46661)

上级 0af3876d
......@@ -156,6 +156,18 @@ export class QuickInputService extends Component implements IQuickInputService {
dom.EventHelper.stop(e, true);
this.close();
break;
case KeyCode.Tab:
if (!event.altKey && !event.ctrlKey && !event.metaKey) {
const inputs = this.container.querySelectorAll('input');
if (event.shiftKey && event.target === inputs[0]) {
dom.EventHelper.stop(e, true);
inputs[inputs.length - 1].focus();
} else if (!event.shiftKey && event.target === inputs[inputs.length - 1]) {
dom.EventHelper.stop(e, true);
inputs[0].focus();
}
}
break;
}
}));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册