1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Desktop: Add support for OCR (#8975)

This commit is contained in:
Laurent Cozic
2023-12-13 19:24:58 +00:00
committed by GitHub
parent 0e847685ff
commit bce94f1775
79 changed files with 2381 additions and 445 deletions

View File

@ -5,6 +5,7 @@ import { EditorCommand } from '../../../utils/types';
import shim from '@joplin/lib/shim';
import { reg } from '@joplin/lib/registry';
import setupVim from './setupVim';
import { EventName } from '@joplin/lib/eventManager';
export default function useKeymap(CodeMirror: any) {
@ -174,7 +175,7 @@ export default function useKeymap(CodeMirror: any) {
const keymapService = KeymapService.instance();
registerKeymap();
keymapService.on('keymapChange', registerKeymap);
keymapService.on(EventName.KeymapChange, registerKeymap);
setupEmacs();
setupVim(CodeMirror);