diff --git a/src/HelpWindow.cpp b/src/HelpWindow.cpp index 4508dba..19fd52f 100644 --- a/src/HelpWindow.cpp +++ b/src/HelpWindow.cpp @@ -68,7 +68,8 @@ HelpWindow::HelpWindow(Widget* parent, bool supportsHdr, function closeC addRow(imageLoading, COMMAND + "+Shift+R or " + COMMAND + "+F5", "Reload all images"); addRow(imageLoading, COMMAND + "+W", "Close image"); addRow(imageLoading, COMMAND + "+Shift+W", "Close all images"); - addRow(imageLoading, COMMAND + "+C", "Copy image or path to clipboard"); + addRow(imageLoading, COMMAND + "+C", "Copy image to clipboard"); + addRow(imageLoading, COMMAND + "+Shift+C", "Copy image's path to clipboard"); addRow(imageLoading, COMMAND + "+V", "Paste image from clipboard"); new Label{shortcuts, "Image options", "sans-bold", 18}; diff --git a/src/ImageViewer.cpp b/src/ImageViewer.cpp index 9fa5b39..c8a2416 100644 --- a/src/ImageViewer.cpp +++ b/src/ImageViewer.cpp @@ -712,7 +712,7 @@ bool ImageViewer::keyboard_event(int key, int scancode, int action, int modifier set_visible(false); return true; } else if (mCurrentImage && key == GLFW_KEY_C && (modifiers & SYSTEM_COMMAND_MOD)) { - if (mImageScrollContainer->focused()) { + if (modifiers & GLFW_MOD_SHIFT) { if (clip::set_text(mCurrentImage->name())) { tlog::success() << "Image path copied to clipboard."; } else {