From 58a85d838604a29dd9a403f78f666552564d6abf Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Thu, 15 Apr 2021 03:41:10 +0200 Subject: [PATCH] Add shortcut labels for mathjax menu --- ts/editor-toolbar/template.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/ts/editor-toolbar/template.ts b/ts/editor-toolbar/template.ts index 352a0cb86..354f7a330 100644 --- a/ts/editor-toolbar/template.ts +++ b/ts/editor-toolbar/template.ts @@ -95,22 +95,19 @@ export function getTemplateMenus(): (DynamicSvelteComponent 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(), }), ],