Skip to content

Commit f874888

Browse files
committed
set default/cancel ids
1 parent 1a54f77 commit f874888

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

emain/emain-window.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,8 @@ ipcMain.handle("close-tab", async (event, workspaceId, tabId, confirmClose) => {
737737
if (confirmClose) {
738738
const choice = dialog.showMessageBoxSync(ww, {
739739
type: "question",
740+
defaultId: 1, // Enter activates "Close Tab"
741+
cancelId: 0, // Esc activates "Cancel"
740742
buttons: ["Cancel", "Close Tab"],
741743
title: "Confirm",
742744
message: "Are you sure you want to close this tab?",

0 commit comments

Comments
 (0)