fix: open new session in working dir when hotkey is pressed (#1570)
This commit is contained in:
@@ -96,7 +96,7 @@ export default function App() {
|
|||||||
const handleKeyDown = (event: KeyboardEvent) => {
|
const handleKeyDown = (event: KeyboardEvent) => {
|
||||||
if ((event.metaKey || event.ctrlKey) && event.key === 'n') {
|
if ((event.metaKey || event.ctrlKey) && event.key === 'n') {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
window.electron.createChatWindow();
|
window.electron.createChatWindow(undefined, window.appConfig.get('GOOSE_WORKING_DIR'));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user