From ef7f411e2da12223d2f4b6dac24b092fab87fde6 Mon Sep 17 00:00:00 2001 From: rhenck <richard.henck@iqb.hu-berlin.de> Date: Thu, 4 Jan 2024 11:39:13 +0100 Subject: [PATCH] MathEditor: Fix arrow keys command #553 --- projects/common/math-editor.module.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/projects/common/math-editor.module.ts b/projects/common/math-editor.module.ts index ce64985e6..7da9ccf15 100644 --- a/projects/common/math-editor.module.ts +++ b/projects/common/math-editor.module.ts @@ -142,24 +142,17 @@ export class MathInputComponent implements AfterViewInit, OnChanges { { class: 'action', label: "<svg><use xlink:href='#svg-arrow-left' /></svg>", - // command: ['performWithFeedback', 'moveToPreviousChar'] - // command: ['performWithFeedback', 'moveToPreviousChar'] - command: ['switchMode', 'math', - '\\frac{#0}{#0}'] - // command: ['insert', '\\frac{#0}{#0}'] + command: ['performWithFeedback', 'moveToPreviousChar'] }, { class: 'action', label: "<svg><use xlink:href='#svg-arrow-right' /></svg>", - // command: ['performWithFeedback', 'moveToNextChar'] - command: ['switchMode', 'math'] + command: ['performWithFeedback', 'moveToNextChar'] }, { class: 'action font-glyph bottom right', label: '⌫', - // ifMode: 'math', command: ['performWithFeedback', 'deleteBackward'] - // command: ['insert', '\\sqrt{#0}', { format: 'latex' }] } ] ] -- GitLab