Skip to content

Fixed drag-and-drop into text fields: files are now inserted at the text caret position instead of where the mouse was dropped - #7

Merged
oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:bugfix/dnd-pos
Apr 11, 2026
Merged

oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:bugfix/dnd-pos

Conversation

@oleg68

@oleg68 oleg68 commented Apr 11, 2026

Copy link
Copy Markdown
Collaborator

Replaced Swing's SwingDropTarget with a custom DropTargetAdapter that never calls setDropLocation(), so the caret stays at the user's original position throughout the drag.

…ext caret position instead of where the mouse was dropped

Replaced Swing's SwingDropTarget with a custom DropTargetAdapter that
never calls setDropLocation(), so the caret stays at the user's original
position throughout the drag.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@oleg68
oleg68 merged commit 418d394 into nbplugins:main Apr 11, 2026
3 checks passed
@oleg68
oleg68 deleted the bugfix/dnd-pos branch April 11, 2026 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant