mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-19 01:51:21 +08:00
feat(agent-manager): accept Cmd+Enter as confirm in delete worktree dialog (#515)
This commit is contained in:
@@ -469,9 +469,15 @@ const AgentManagerContent: Component = () => {
|
||||
}
|
||||
dialog.close()
|
||||
}
|
||||
const onKeyDown = (e: KeyboardEvent) => {
|
||||
if (e.key === "Enter" && (e.metaKey || e.ctrlKey)) {
|
||||
e.preventDefault()
|
||||
doDelete()
|
||||
}
|
||||
}
|
||||
dialog.show(() => (
|
||||
<Dialog title="Delete Worktree" fit>
|
||||
<div class="am-confirm">
|
||||
<div class="am-confirm" onKeyDown={onKeyDown}>
|
||||
<div class="am-confirm-message">
|
||||
<Icon name="trash" size="small" />
|
||||
<span>
|
||||
|
||||
Reference in New Issue
Block a user