mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 22:41:31 +01:00
Issue reporter responsive CSS (#43007)
This commit is contained in:
committed by
GitHub
parent
0f30344700
commit
0c7afa823e
@@ -249,15 +249,30 @@ export class IssueReporter extends Disposable {
|
||||
|
||||
document.getElementById('github-submit-btn').addEventListener('click', () => this.createIssue());
|
||||
|
||||
document.getElementById('disableExtensions').addEventListener('click', () => {
|
||||
const disableExtensions = document.getElementById('disableExtensions');
|
||||
disableExtensions.addEventListener('click', () => {
|
||||
ipcRenderer.send('workbenchCommand', 'workbench.extensions.action.disableAll');
|
||||
ipcRenderer.send('workbenchCommand', 'workbench.action.reloadWindow');
|
||||
});
|
||||
|
||||
document.getElementById('showRunning').addEventListener('click', () => {
|
||||
disableExtensions.addEventListener('keydown', (e) => {
|
||||
if (e.keyCode === 13 || e.keyCode === 32) {
|
||||
ipcRenderer.send('workbenchCommand', 'workbench.extensions.action.disableAll');
|
||||
ipcRenderer.send('workbenchCommand', 'workbench.action.reloadWindow');
|
||||
}
|
||||
});
|
||||
|
||||
const showRunning = document.getElementById('showRunning');
|
||||
showRunning.addEventListener('click', () => {
|
||||
ipcRenderer.send('workbenchCommand', 'workbench.action.showRuntimeExtensions');
|
||||
});
|
||||
|
||||
showRunning.addEventListener('keydown', (e) => {
|
||||
if (e.keyCode === 13 || e.keyCode === 32) {
|
||||
ipcRenderer.send('workbenchCommand', 'workbench.action.showRuntimeExtensions');
|
||||
}
|
||||
});
|
||||
|
||||
// Cmd+Enter or Mac or Ctrl+Enter on other platforms previews issue and closes window
|
||||
if (platform.isMacintosh) {
|
||||
let prevKeyWasCommand = false;
|
||||
|
||||
Reference in New Issue
Block a user