Fix newline shortcut in MathjaxMenu (#1705)

This commit is contained in:
Henrik Giesel 2022-03-03 09:55:07 +01:00 committed by GitHub
parent 508b5ab947
commit 29d17a84fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,10 +20,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
const acceptShortcut = "Enter";
const newlineShortcut = "Shift+Enter";
function appendNewline(): void {
code.update((value) => `${value}\n`);
}
export let updateSelection: () => Promise<void>;
let dropdownApi: any;
@ -53,7 +49,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
keyCombination={acceptShortcut}
on:action={() => dispatch("moveoutend")}
/>
<Shortcut keyCombination={newlineShortcut} on:action={appendNewline} />
<MathjaxButtons
{element}