Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Only allow ESC shortcut to cancel when creating the instance

天舟f162f62c58ee
diff --git a/frontend/src/views/InstanceDetail.vue b/frontend/src/views/InstanceDetail.vue
index 895fdf4a85..38c39ff02f 100644
--- a/frontend/src/views/InstanceDetail.vue
+++ b/frontend/src/views/InstanceDetail.vue
@@ -327,7 +327,7 @@ export default {
});
const escHandler = (e: KeyboardEvent) => {
- if (e.code == "Escape" && !state.showCancelModal) {
+ if (e.code == "Escape" && state.new && !state.showCancelModal) {
cancel();
}
};