mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-06 06:58:15 +00:00
Fix Ctrl+drag and drop to copy the selection content on Windows
Regression introduced in ec2a1f229d
Bug reports: https://community.aseprite.org/t/503
This commit is contained in:
parent
ec2a1f229d
commit
331e09bdbf
@ -1894,11 +1894,14 @@ bool Editor::isInsideSelection()
|
||||
bool Editor::canStartMovingSelectionPixels()
|
||||
{
|
||||
return
|
||||
(isInsideSelection()) &&
|
||||
// In this way we cannot move the selection when add/subtract
|
||||
// modes are enabled (we prefer to modify the selection on those
|
||||
// modes instead of moving pixels).
|
||||
(int(m_toolLoopModifiers) & int(tools::ToolLoopModifiers::kReplaceSelection));
|
||||
isInsideSelection() &&
|
||||
// We cannot move the selection when add/subtract modes are
|
||||
// enabled (we prefer to modify the selection on those modes
|
||||
// instead of moving pixels).
|
||||
((int(m_toolLoopModifiers) & int(tools::ToolLoopModifiers::kReplaceSelection)) ||
|
||||
// We can move the selection when the Copy selection key (Ctrl) is pressed.
|
||||
(m_customizationDelegate &&
|
||||
int(m_customizationDelegate->getPressedKeyAction(KeyContext::TranslatingSelection) & KeyAction::CopySelection)));
|
||||
}
|
||||
|
||||
EditorHit Editor::calcHit(const gfx::Point& mouseScreenPos)
|
||||
|
Loading…
Reference in New Issue
Block a user