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({
|
||||
// @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(),
|
||||
}),
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user