| Summary: | Moving files per drag and drop and shift-key (within folder-view) does not work. | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Gerhard Dittes <g-a-d> |
| Component: | Desktop icons & Folder View widget | Assignee: | Eike Hein <hein> |
| Status: | CLOSED FIXED | ||
| Severity: | normal | CC: | bugseforuns, codestruct, kde, plasma-bugs-null |
| Priority: | NOR | ||
| Version First Reported In: | 5.8.6 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Debian stable | ||
| OS: | Linux | ||
| Latest Commit: | https://commits.kde.org/plasma-desktop/6b8fa112f47d6ed5794167b737007e35a7817746 | Version Fixed/Implemented In: | 5.11.0 |
| Sentry Crash Report: | |||
|
Description
Gerhard Dittes
2017-07-27 11:45:23 UTC
Qt tries to determin the default action based on modifiers (e.g. Shift+Ctrl = Link). QXcbDrag does defaultAction(currentDrag()->supportedActions(), QGuiApplication::keyboardModifiers()) and QPlatformDrag::defaultAction() performs the check for keyboard modifiers. I'm quite lost as to why it works in Dolphin but not FolderView. I tried placing a qApp->queryKeyboardModifiers() before doing exec()'ing the QDrag but that didn't help. Also, at any point from what I can tell the keyboard modifiers QGuiApplication thinks of are indeed correct :/ Git commit 6b8fa112f47d6ed5794167b737007e35a7817746 by Kai Uwe Broulik. Committed on 14/09/2017 at 08:26. Pushed by broulik into branch 'master'. [Folder View] Fix supported drag actions SetSupportedDragActions is deprecated and doesn't seem to work. This fixes modifier shortcuts for dragging, e.g. dragging with Ctrl+Shift to create a link. FIXED-IN: 5.11.0 Differential Revision: https://phabricator.kde.org/D7798 M +5 -2 containments/desktop/plugins/folder/foldermodel.cpp M +1 -0 containments/desktop/plugins/folder/foldermodel.h https://commits.kde.org/plasma-desktop/6b8fa112f47d6ed5794167b737007e35a7817746 |