close window action

This commit is contained in:
Mitchell Hashimoto
2022-11-06 10:44:23 -08:00
parent 410b2b4486
commit be76bc6c1a
3 changed files with 12 additions and 2 deletions

View File

@@ -764,6 +764,8 @@ fn keyCallback(
}, .{ .instant = {} });
win.app.wakeup();
},
.close_window => win.window.setShouldClose(true),
}
// Bindings always result in us ignoring the char if printable