mirror of
https://github.com/fergalmoran/flameshot.git
synced 2025-12-22 09:51:06 +00:00
* Enhancement: add feature #1765 Double click replace Ctrl+C. When Double Clicked, Copy the Screen to Clipboard. * Enhancement: add feature #1765 Double click replace Ctrl+C. When Double Clicked, Copy the Screen to Clipboard.
This commit is contained in:
@@ -14,6 +14,10 @@ const QVector<QStringList>& ConfigShortcuts::captureShortcutsDefault(
|
|||||||
QString shortcutName = QVariant::fromValue(t).toString();
|
QString shortcutName = QVariant::fromValue(t).toString();
|
||||||
if (shortcutName != "TYPE_IMAGEUPLOADER") {
|
if (shortcutName != "TYPE_IMAGEUPLOADER") {
|
||||||
addShortcut(shortcutName, b->tool()->description());
|
addShortcut(shortcutName, b->tool()->description());
|
||||||
|
if (shortcutName == "TYPE_COPY")
|
||||||
|
m_shortcuts << (QStringList()
|
||||||
|
<< "" << b->tool()->description()
|
||||||
|
<< "Left Double-click");
|
||||||
}
|
}
|
||||||
delete b;
|
delete b;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -570,6 +570,10 @@ void CaptureWidget::mouseDoubleClickEvent(QMouseEvent* event)
|
|||||||
handleToolSignal(CaptureTool::REQ_ADD_CHILD_WIDGET);
|
handleToolSignal(CaptureTool::REQ_ADD_CHILD_WIDGET);
|
||||||
m_panel->setToolWidget(m_activeTool->configurationWidget());
|
m_panel->setToolWidget(m_activeTool->configurationWidget());
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if (m_selection->geometry().contains(event->pos())) {
|
||||||
|
copyScreenshot();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user