Add shortcut labels for mathjax menu

This commit is contained in:
Henrik Giesel 2021-04-15 03:41:10 +02:00
parent 5225ef31b3
commit 58a85d8386

View File

@ -95,22 +95,19 @@ export function getTemplateMenus(): (DynamicSvelteComponent<typeof DropdownMenu>
dropdownItem({
// @ts-expect-error
onClick: () => wrap("\\(", "\\)"),
tooltip: "test",
endLabel: "test",
endLabel: "Ctrl+M, M",
label: tr.editingMathjaxInline(),
}),
dropdownItem({
// @ts-expect-error
onClick: () => wrap("\\[", "\\]"),
tooltip: "test",
endLabel: "test",
endLabel: "Ctrl+M, E",
label: tr.editingMathjaxBlock(),
}),
dropdownItem({
// @ts-expect-error
onClick: () => wrap("\\(\\ce{", "}\\)"),
tooltip: "test",
endLabel: "test",
endLabel: "Ctrl+M, C",
label: tr.editingMathjaxChemistry(),
}),
],