Add shortcut labels for mathjax menu
This commit is contained in:
parent
5225ef31b3
commit
58a85d8386
@ -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(),
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user