Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Drag] Add support for key interactions in drag mode #125

Open
fipro78 opened this issue Oct 11, 2024 · 0 comments
Open

[Drag] Add support for key interactions in drag mode #125

fipro78 opened this issue Oct 11, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@fipro78
Copy link
Contributor

fipro78 commented Oct 11, 2024

When an IDragMode is active, there is currently no further interaction possible despite the mouse related ones. That means, pressing a key while a drag mode is active has no effect.

There are use cases where the drag behavior should change in case a key is pressed. One example could be a copy or move behavior dependent on whether the CTRL key is pressed while dragging or not. This is a behavior you can see for example in the Windows Explorer.

In most of the cases this behavior is not necessary. Therefore a new IDragModeWithKeySupport interface should be introduced, that allows to define the handling of key interactions in the active drag mode. In the DragModeEventHandler the key events should be only handled and forwarded to the drag mode if the drag mode is of type IDragModeWithKeySupport.

@fipro78 fipro78 added the enhancement New feature or request label Oct 11, 2024
@fipro78 fipro78 added this to the 2.5.0 milestone Oct 11, 2024
@fipro78 fipro78 self-assigned this Oct 11, 2024
fipro78 added a commit that referenced this issue Oct 11, 2024
fipro78 added a commit that referenced this issue Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant