desktop: add more basic menu bar items

This commit is contained in:
Brendan Allan
2026-02-06 18:10:48 +08:00
parent 9b20679a61
commit e0e32ed3a8
7 changed files with 138 additions and 34 deletions

View File

@@ -82,6 +82,21 @@ export function Titlebar() {
navigate(to)
}
command.register(() => [
{
id: "common.goBack",
title: language.t("common.goBack"),
category: language.t("command.category.view"),
onSelect: back,
},
{
id: "common.goForward",
title: language.t("common.goForward"),
category: language.t("command.category.view"),
onSelect: forward,
},
])
const getWin = () => {
if (platform.platform !== "desktop") return