Compare commits

...

3 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
7fda0fc714 Remove irrelevant keyboard shortcuts - keep only Ctrl+W and Ctrl+PageUp/Down
Co-authored-by: Pragadesh44-Bruno <172116368+Pragadesh44-Bruno@users.noreply.github.com>
2025-10-27 09:10:16 +00:00
copilot-swe-agent[bot]
c4a2d52cc9 Add keyboard shortcut pass-through for tab navigation in CodeMirror editors
Co-authored-by: Pragadesh44-Bruno <172116368+Pragadesh44-Bruno@users.noreply.github.com>
2025-10-27 08:50:31 +00:00
copilot-swe-agent[bot]
4e5846f3bd Initial plan 2025-10-27 08:38:03 +00:00
4 changed files with 32 additions and 4 deletions

View File

@@ -129,7 +129,14 @@ export default class CodeEditor extends React.Component {
if (this.state.searchBarVisible) {
this.setState({ searchBarVisible: false });
}
}
},
// Pass through tab navigation shortcuts to global handlers
'Cmd-W': () => CodeMirror.Pass,
'Ctrl-W': () => CodeMirror.Pass,
'Cmd-PageUp': () => CodeMirror.Pass,
'Ctrl-PageUp': () => CodeMirror.Pass,
'Cmd-PageDown': () => CodeMirror.Pass,
'Ctrl-PageDown': () => CodeMirror.Pass
},
foldOptions: {
widget: (from, to) => {

View File

@@ -62,7 +62,14 @@ class MultiLineEditor extends Component {
'Ctrl-F': () => {},
// Tabbing disabled to make tabindex work
Tab: false,
'Shift-Tab': false
'Shift-Tab': false,
// Pass through tab navigation shortcuts to global handlers
'Cmd-W': () => CodeMirror.Pass,
'Ctrl-W': () => CodeMirror.Pass,
'Cmd-PageUp': () => CodeMirror.Pass,
'Ctrl-PageUp': () => CodeMirror.Pass,
'Cmd-PageDown': () => CodeMirror.Pass,
'Ctrl-PageDown': () => CodeMirror.Pass
}
});

View File

@@ -128,7 +128,14 @@ export default class QueryEditor extends React.Component {
}
},
'Cmd-F': 'findPersistent',
'Ctrl-F': 'findPersistent'
'Ctrl-F': 'findPersistent',
// Pass through tab navigation shortcuts to global handlers
'Cmd-W': () => CodeMirror.Pass,
'Ctrl-W': () => CodeMirror.Pass,
'Cmd-PageUp': () => CodeMirror.Pass,
'Ctrl-PageUp': () => CodeMirror.Pass,
'Cmd-PageDown': () => CodeMirror.Pass,
'Ctrl-PageDown': () => CodeMirror.Pass
}
}));
if (editor) {

View File

@@ -71,7 +71,14 @@ class SingleLineEditor extends Component {
'Ctrl-F': noopHandler,
// Tabbing disabled to make tabindex work
Tab: false,
'Shift-Tab': false
'Shift-Tab': false,
// Pass through tab navigation shortcuts to global handlers
'Cmd-W': () => CodeMirror.Pass,
'Ctrl-W': () => CodeMirror.Pass,
'Cmd-PageUp': () => CodeMirror.Pass,
'Ctrl-PageUp': () => CodeMirror.Pass,
'Cmd-PageDown': () => CodeMirror.Pass,
'Ctrl-PageDown': () => CodeMirror.Pass
}
});