Bug 443882 - popup menu of highlighted text does not appear on right click in text selection mode
Summary: popup menu of highlighted text does not appear on right click in text selecti...
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 22.08.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 435918 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-10-17 11:33 UTC by Emmanuel
Modified: 2024-07-11 08:21 UTC (History)
10 users (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 Emmanuel 2021-10-17 11:33:32 UTC
SUMMARY


STEPS TO REPRODUCE
1. open a pdf file
2. press key 1 and highlight a part of text
3. right click highlighted text

OBSERVED RESULT
no popupo menu shows up

EXPECTED RESULT
popup menu should appear in order to be able to add text or remove highlighting

SOFTWARE/OS VERSIONS
okular 21.08.2/Archlinux 


ADDITIONAL INFORMATION
The problem does not exist in version 21.04.3
Comment 1 Emmanuel 2021-10-18 01:38:55 UTC
From the discussion in an archlinux forum (https://bbs.archlinux.org/viewtopic.php?pid=1998264#p1998264), it comes out that the problem just occurs when okular is in "text selection" mode (ctrl-4). No pop-up is available is this case when a right click is made on an highlighted text. Though when okular is in "browse" mode is (ctrl-1), the pop-up menu is acessible.
Additional information:
In both mode ("text selection" or "browse"), one can have a pop-up window to edit an annotation by right-clicking on the note in the annotation tab of the sidebar, but this is not very practical/intuitive.
Comment 2 Albert Astals Cid 2021-10-18 09:15:19 UTC
Can you attach a video of this because we totally do show the right click menu on text selection mode.
Comment 3 Emmanuel 2021-10-18 17:57:40 UTC
** Comment removed at request of submitter by KDE Sysadmin **
Comment 4 Emmanuel 2021-10-18 17:59:05 UTC
** Comment removed at request of submitter by KDE Sysadmin **
Comment 5 Nicolás Alvarez 2021-10-18 20:30:25 UTC
Both links are the same...
Comment 6 Emmanuel 2021-10-18 21:56:27 UTC
Here is (finally) a small video showing the difference between "browse" mode and "selection text" mode. Sorry for the quite unpolished english commentaries (and the previously sent mistaken links).
https://drive.google.com/file/d/1LmOxcMDwC7yP0kDRAonMy1lD0VlqMy4E/view?usp=sharing
Comment 7 Albert Astals Cid 2021-10-18 22:17:35 UTC
Oh, you meant right click on a highlight annotation while on text selection mode. I misunderstood your initial text and thought you were right clicking on a text selection.

Yes that is somewhat on purpose, ideally we would work further on merging browse and text selection modes, but there are unsolved issues.

I don't consider this really a bug, more of a whishlist.
Comment 8 Emmanuel 2021-10-19 02:13:34 UTC
Ok. If it's not a bug, I see it as a lost feature. My solution was initially to downgrade to okular version 21.04.3 for which popup menu work in both mode, till someone told me that I had to use a browse mode in order to do things related with annotation instead of text selection. I don't find that very intuitive or practical. It raises the question of how people will learn this new restriction for annotation.
Comment 9 Emmanuel 2021-10-19 02:15:18 UTC
Maybe a correct bug would be about the possibly missing documentation that would explain the way it works.
Comment 10 Albert Astals Cid 2021-10-19 21:01:42 UTC
I just compiled 21.04.3 and no, you can't right click on an highlight annotation while on text selection mode either.
Comment 11 postix 2022-03-12 16:09:56 UTC
I can confirm it and that can little bit annoying: 

When you first used the text selection mode and then use eg the highlighter tool from the toolbar to annotate some text, but noticed that you did an error and want to remove it by right clicking -> delete, it won't work, because the "Selection mode" becomes enabled again, disabling the context menu.
Comment 12 Elmar 2022-06-15 04:53:50 UTC
Whilst I have some understanding for the developer's perspective ...
Please reconsider: if something is not intuitive, it is the same as trying to speak to someone in an unfamiliar language. Very frustrating.
I also find that if I do not click in exactly the right place, Okular creates a new text box, and hen I cannot delete it.
I had to do a search to figure this out.
Surely a simple solution with too much difficulty would simply be to add a "delete" function in the right-click context menu? I mean, all the code already exists, doesn't it? And more, this was a function that existed previously - that in itself should be justification.
A case of $1 saving $1,000 of ongoing frustration.
Comment 13 simon 2022-06-25 16:49:03 UTC
(In reply to Elmar from comment #12)
> Whilst I have some understanding for the developer's perspective ...
> Please reconsider: if something is not intuitive, it is the same as trying
> to speak to someone in an unfamiliar language. Very frustrating.
> I also find that if I do not click in exactly the right place, Okular
> creates a new text box, and hen I cannot delete it.
> I had to do a search to figure this out.
> Surely a simple solution with too much difficulty would simply be to add a
> "delete" function in the right-click context menu? I mean, all the code
> already exists, doesn't it? And more, this was a function that existed
> previously - that in itself should be justification.
> A case of $1 saving $1,000 of ongoing frustration.

I agree. I ended  up here because I thought it was impossible to remove the highlight from a text
Comment 14 Martin 2022-08-23 07:41:41 UTC
For Okular version  21.12.3, I confirm that this works in "browse" mode.

The bug only happens in  "text selection" mode.
Comment 15 Emmanuel 2022-09-09 23:53:00 UTC
A very similar problem still exist in version 22.08.0. I use archlinux package here. The problem appears after sometimes only. When it occurs, if  downgrade to version 21.04.3, it works well back. Strangely if I upgrade back to 22.08.0, it works fine, for sometime and then it fail to work. I did test twice and it ended up failing twice. I'm in my third attempt now.
Comment 16 Emmanuel 2022-09-09 23:58:34 UTC
(In reply to Martin from comment #14)
> For Okular version  21.12.3, I confirm that this works in "browse" mode.
> 
> The bug only happens in  "text selection" mode.

Now, I understand. When it start failing, I have to make a second right click in order to open the annotation pop-up window! Thank you Martin. It does really solve the bug, but it help quite a lot! It make the bug bearable in the sense the annotation is functional with a rather small annoyance.
Comment 17 Felix Ernst 2024-05-23 09:55:55 UTC
*** Bug 435918 has been marked as a duplicate of this bug. ***
Comment 18 Stan 2024-07-11 08:21:12 UTC
I think it is important that the right-click + delete works in all annotation modes (highlighting, pop-up, etc.), as this is when it is most needed, e.g. after highlighting the wrong part of text or placing a note in the wrong place. It is very tedious to have to switch out of the annotation mode in order to delete the wrong annotation and then switch back into it again to add the annotation in the right place.  Therefore, I would consider this missing functionality a bug.