mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Fix newline shortcut in MathjaxMenu (#1705)
This commit is contained in:
parent
508b5ab947
commit
29d17a84fc
1 changed files with 0 additions and 5 deletions
|
@ -20,10 +20,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
const acceptShortcut = "Enter";
|
const acceptShortcut = "Enter";
|
||||||
const newlineShortcut = "Shift+Enter";
|
const newlineShortcut = "Shift+Enter";
|
||||||
|
|
||||||
function appendNewline(): void {
|
|
||||||
code.update((value) => `${value}\n`);
|
|
||||||
}
|
|
||||||
|
|
||||||
export let updateSelection: () => Promise<void>;
|
export let updateSelection: () => Promise<void>;
|
||||||
let dropdownApi: any;
|
let dropdownApi: any;
|
||||||
|
|
||||||
|
@ -53,7 +49,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
keyCombination={acceptShortcut}
|
keyCombination={acceptShortcut}
|
||||||
on:action={() => dispatch("moveoutend")}
|
on:action={() => dispatch("moveoutend")}
|
||||||
/>
|
/>
|
||||||
<Shortcut keyCombination={newlineShortcut} on:action={appendNewline} />
|
|
||||||
|
|
||||||
<MathjaxButtons
|
<MathjaxButtons
|
||||||
{element}
|
{element}
|
||||||
|
|
Loading…
Reference in a new issue