1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-11 18:24:43 +02:00

Desktop: Fix: Fixed cursor moved to the top issue in Markdown editor (#4870)

Ref: https://discourse.joplinapp.org/t/cursor-moved-to-the-top-undo-history-removed/16837/6
This commit is contained in:
Caleb John 2021-04-24 02:18:31 -06:00 committed by GitHub
parent 0aef1f95ef
commit e95ea48ce9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,8 @@ export default function useDropHandler(dependencies: HookDependencies) {
const { editorRef } = dependencies;
return useCallback(async (event: any) => {
if (!event.dataTransfer) return;
const dt = event.dataTransfer;
const createFileURL = event.altKey;