mirror of
https://github.com/ankitects/anki.git
synced 2025-11-07 13:17:12 -05:00
Add shortcut labels for mathjax menu
This commit is contained in:
parent
5225ef31b3
commit
58a85d8386
1 changed files with 3 additions and 6 deletions
|
|
@ -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 a new issue