Bug 445903 - Having a text selection and then switching to a highlight tool no longer allows you to deselect the text selection, not even Escape works.
Summary: Having a text selection and then switching to a highlight tool no longer allo...
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 21.08.3
Platform: Neon Linux
: NOR minor
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-22 07:17 UTC by strangequark
Modified: 2021-11-22 21:58 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description strangequark 2021-11-22 07:17:41 UTC
SUMMARY
The summary above.

STEPS TO REPRODUCE
1. Select the 'Text selection' tool, and then select some lines in the document.
2. Now, without deselecting your previous selection, go to the highlight tool (has not been tested by me with other tools)
3. press Escape, or click elsewhere in the document to try and deselect the selected text.

OBSERVED RESULT
You can't deselect the text in any way when the highlighter tool is enabled, not even the keyboard shortcut for deselect works.

EXPECTED RESULT
You should be able to deselect by clicking Escape or by clicking on a part of the document that's away from the selection.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.23
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.3
Graphics Platform: X11

ADDITIONAL INFORMATION
none
Comment 1 Albert Astals Cid 2021-11-22 10:41:13 UTC
Isn't this just the same as 445904 ?
Comment 2 strangequark 2021-11-22 11:29:18 UTC
(In reply to Albert Astals Cid from comment #1)
> Isn't this just the same as 445904 ?

It's slightly different - there's no way to deselect any text when you're on another annotation tool. Clicking outside the selection area, the default Plasma shortcut for Deselect, none of them work.
Escape doesn't work because it's not currently even there, but I wasn't sure of that at the time.
Comment 3 Albert Astals Cid 2021-11-22 21:58:17 UTC
Yes, there is no way to deselect text when adding an annotation, i don't see why that is a problem. Text selection is changed in the text selection mode.