refac
This commit is contained in:
@@ -63,6 +63,7 @@
|
||||
|
||||
import { WEBUI_BASE_URL, WEBUI_API_BASE_URL, PASTED_TEXT_CHARACTER_LIMIT } from '$lib/constants';
|
||||
import { initiateOAuthRedirect } from '$lib/apis/configs';
|
||||
import { matchKeybinding, Shortcut } from '$lib/shortcuts';
|
||||
|
||||
import { createNoteHandler } from '../notes/utils';
|
||||
import { getSuggestionRenderer } from '../common/RichTextInput/suggestions';
|
||||
@@ -1009,8 +1010,7 @@
|
||||
shiftKey = true;
|
||||
}
|
||||
|
||||
// Cmd/Ctrl+Shift+L to toggle dictation
|
||||
if (e.key.toLowerCase() === 'l' && (e.metaKey || e.ctrlKey) && e.shiftKey) {
|
||||
if (matchKeybinding(e) === Shortcut.TOGGLE_DICTATION) {
|
||||
e.preventDefault();
|
||||
if (recording) {
|
||||
// Confirm and stop recording
|
||||
|
||||
Reference in New Issue
Block a user