Bug 429743 - View Mode (and other) actions disable keyboard shortcuts for Annotation Toolbar and Main Toolbar
Summary: View Mode (and other) actions disable keyboard shortcuts for Annotation Toolb...
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.11.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-27 21:02 UTC by Frank Steinmetzger
Modified: 2020-12-01 18:32 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Steinmetzger 2020-11-27 21:02:39 UTC
SUMMARY
I want quick access to Okular’s various toolbars. So I set up shortcuts for them, based on the default F7 for the sidebar:
F8: page view bar
F9: Annotation bar
F10: Main toolbar

I also set single-letter shortcuts for most view modes like fit page, fit to width and page layouts.

I noticed that when I execute some of those actions, namely all actions from the Vire→View Mode menu, and also the above mentioned F8 to toggle the page view bar at the bottom, the keyboard assignments for the Annotation bar and the Main toolbar don’t work anymore. When I then got to Configure shortcuts, the assignments are gone.

In one test I accidentally assigned F10 to Configure shortcuts instead, and this assignment was not cleared. So it is not a question of the key code, but rather the target action. There may be more affected actions, both on the “causing” and on the “victim” side of the problem.


STEPS TO REPRODUCE
1. Open Configure Shortcuts in Okular
2. Assign a keyboard shortcut to Annotation Toolbar and Main Toolbar
3. Make sure the shortcuts work by trying them out
3. Open a file and trigger any action from the View→View Mode menu or the Settings→Show Page Bar action.

OBSERVED RESULT
The shortcut assignments from step 2 are erased.

EXPECTED RESULT
The shortcuts should not be affected.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux, Kernel version 5.5.9
KDE Plasma Version: 5.20.3
KDE Frameworks Version: 5.76.0
Qt Version: 5..12.2
But this problem is not new, I’ve been observing it for a while now.
Comment 1 David Hurka 2020-11-28 13:05:04 UTC
Does this happen only when you have two or more tabs open?

And when you restart Okular, are the configured shortcuts restored, so they work fine from then on?

If yes, this is probably Bug 384700, for which we have an apparent workaround.
Comment 2 Frank Steinmetzger 2020-11-28 14:16:51 UTC
By jove, you’re right. When I close and re-open Okular, the shortcuts are back. I can live with that workaround until the fix is integrated, thanks for the hint.

I don’t really use tabs and observed the problem in single-document windows.
Comment 3 Frank Steinmetzger 2020-11-28 14:19:57 UTC
The problem really came to my attention because there were some new default shortcuts introduced, which, until now, I had used for those view modes. Namely, I had 1=one page, 2=two pages, 3=two pages (first centered).

Now that the annotation tools are assigned to the number keys by default, I oftentimes open the annotation toolbar by mistake and thus needed a shortcut to close it again. I don’t really mind the new default shortcuts, I just need some time to adapt my habits.