diff --git a/qt/aqt/mediasrv.py b/qt/aqt/mediasrv.py index ddd8ac335..0c41f1e8a 100644 --- a/qt/aqt/mediasrv.py +++ b/qt/aqt/mediasrv.py @@ -745,6 +745,7 @@ def show_in_media_folder() -> bytes: return b"" + async def record_audio() -> bytes: loop = asyncio.get_event_loop() future = loop.create_future() @@ -765,6 +766,7 @@ async def record_audio() -> bytes: return generic_pb2.String(val=path if path else "").SerializeToString() + post_handler_list = [ congrats_info, get_deck_configs_for_update, diff --git a/ts/routes/editor/editor-toolbar/TemplateButtons.svelte b/ts/routes/editor/editor-toolbar/TemplateButtons.svelte index f50c6ce3f..e3a7a5f36 100644 --- a/ts/routes/editor/editor-toolbar/TemplateButtons.svelte +++ b/ts/routes/editor/editor-toolbar/TemplateButtons.svelte @@ -22,7 +22,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html import { setFormat } from "../old-editor-adapter"; import { editingInputIsRichText } from "../rich-text-input"; import LatexButton from "./LatexButton.svelte"; - import { filenameToLink, openFilePickerForMedia } from "../rich-text-input/data-transfer"; + import { + filenameToLink, + openFilePickerForMedia, + } from "../rich-text-input/data-transfer"; import { addMediaFromPath, recordAudio } from "@generated/backend"; const { focusedInput } = context.get(); @@ -42,7 +45,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html await attachPath(path); } - const recordCombination = "F5"; async function attachRecordingOnFocus(): Promise {