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
pull/4492/head^2
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
1 changed files with 2 additions and 0 deletions

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;