Skip to content
Snippets Groups Projects
Commit ef7f411e authored by rhenck's avatar rhenck
Browse files

MathEditor: Fix arrow keys command

#553
parent c5d6f291
No related branches found
No related tags found
No related merge requests found
...@@ -142,24 +142,17 @@ export class MathInputComponent implements AfterViewInit, OnChanges { ...@@ -142,24 +142,17 @@ export class MathInputComponent implements AfterViewInit, OnChanges {
{ {
class: 'action', class: 'action',
label: "<svg><use xlink:href='#svg-arrow-left' /></svg>", label: "<svg><use xlink:href='#svg-arrow-left' /></svg>",
// command: ['performWithFeedback', 'moveToPreviousChar'] command: ['performWithFeedback', 'moveToPreviousChar']
// command: ['performWithFeedback', 'moveToPreviousChar']
command: ['switchMode', 'math',
'\\frac{#0}{#0}']
// command: ['insert', '\\frac{#0}{#0}']
}, },
{ {
class: 'action', class: 'action',
label: "<svg><use xlink:href='#svg-arrow-right' /></svg>", label: "<svg><use xlink:href='#svg-arrow-right' /></svg>",
// command: ['performWithFeedback', 'moveToNextChar'] command: ['performWithFeedback', 'moveToNextChar']
command: ['switchMode', 'math']
}, },
{ {
class: 'action font-glyph bottom right', class: 'action font-glyph bottom right',
label: '&#x232b;', label: '&#x232b;',
// ifMode: 'math',
command: ['performWithFeedback', 'deleteBackward'] command: ['performWithFeedback', 'deleteBackward']
// command: ['insert', '\\sqrt{#0}', { format: 'latex' }]
} }
] ]
] ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment