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({ dropdownItem({
// @ts-expect-error // @ts-expect-error
onClick: () => wrap("\\(", "\\)"), onClick: () => wrap("\\(", "\\)"),
tooltip: "test", endLabel: "Ctrl+M, M",
endLabel: "test",
label: tr.editingMathjaxInline(), label: tr.editingMathjaxInline(),
}), }),
dropdownItem({ dropdownItem({
// @ts-expect-error // @ts-expect-error
onClick: () => wrap("\\[", "\\]"), onClick: () => wrap("\\[", "\\]"),
tooltip: "test", endLabel: "Ctrl+M, E",
endLabel: "test",
label: tr.editingMathjaxBlock(), label: tr.editingMathjaxBlock(),
}), }),
dropdownItem({ dropdownItem({
// @ts-expect-error // @ts-expect-error
onClick: () => wrap("\\(\\ce{", "}\\)"), onClick: () => wrap("\\(\\ce{", "}\\)"),
tooltip: "test", endLabel: "Ctrl+M, C",
endLabel: "test",
label: tr.editingMathjaxChemistry(), label: tr.editingMathjaxChemistry(),
}), }),
], ],