Bug 498327 - Highlighter : Add "constrain to straight line" hotkey
Summary: Highlighter : Add "constrain to straight line" hotkey
Status: RESOLVED FIXED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 24.08.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2025-01-06 17:01 UTC by Rory
Modified: 2025-01-17 20:25 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.4.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rory 2025-01-06 17:01:51 UTC
***
In Spectacle the Line and Arrow tool have a 'snap to straight line' feature if you hold SHIFT while using them.  But this does not work for the Highlighter tool.  So it's hard to highlight a long string of text well.
***

SUMMARY
Making clean straight highlighter marks in Spectacle is not easy.  Adding CTRL straight line modifier can help.

STEPS TO REPRODUCE
1.  Take a screen shot
2.  Pick highlighter
3.  Holding SHIFT does not make the tool 'snap to' a straight line

OBSERVED RESULT
Highlight mark is not straight

EXPECTED RESULT
Highlight tool 'snaps to' straight line

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2025-01-07 17:13:16 UTC
Agreed.
Comment 2 Bug Janitor Service 2025-01-16 22:49:52 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/spectacle/-/merge_requests/433
Comment 3 Noah Davis 2025-01-17 16:23:56 UTC
Git commit f5434a1c25975aafcacffd7d6b58ef25ce8743a6 by Noah Davis.
Committed on 16/01/2025 at 22:48.
Pushed by ndavis into branch 'master'.

Allow snapping Freehand and Highlighter tools to straight lines with Shift
Related: bug 469371

Doesn't fix the lack of a true rectangle highlighter, but should make it easier to highlight rectangular areas when combined with increasing the stroke size.

M  +14   -5    src/Gui/Annotations/AnnotationDocument.cpp
M  +1    -1    src/Gui/Annotations/AnnotationDocument.h
M  +1    -1    src/Gui/Annotations/AnnotationViewport.cpp

https://invent.kde.org/graphics/spectacle/-/commit/f5434a1c25975aafcacffd7d6b58ef25ce8743a6