Bug 384700 - Setting a shortcut for "Toggle Change Colors" is not remembered
Summary: Setting a shortcut for "Toggle Change Colors" is not remembered
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: accessibility
: 361573 419203 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-09-14 10:08 UTC by hovgaard
Modified: 2021-06-06 10:44 UTC (History)
10 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hovgaard 2017-09-14 10:08:47 UTC
I use okular daily on Kubuntu.
I am higly dependent on the "Accessibilty Reading Aids" giving me the ability to revert the colors, as I am visually impaired.
So most time is spent in reversed color mode as it gives me the ability to read long hours with dark background and light text.
But occasionally I need to look at a graph or a picture in a pdf, and for this I need so momentarily switch of the color inversion only to turn it on again shortly after when continuing the read of the book.
It would really be perfect with a quick keyboard shortcut, that would toggle the reverse color mode on/off.
Thanks for a great application I really love Okular.
-Danish Kde User trough 10+ years...
Comment 1 null 2017-11-26 22:35:09 UTC
Note that you set a shortcut already, the action is called "Toggle Change Colors". For convenience, you could also add this as a button to the toolbar.

However, there is a weird bug which results in the shortcut not being saved:
- configure shortcut
- execute shortcut (works)
- execute shortcut again (does not work anymore)
- check shortcuts dialog, see that the shortcut is lost indeed

Until this is fixed (let's make this bug about this issue), the workaround is to restart Okular after setting the shortcut for the first time, which makes it stick.
Comment 2 kadlecf 2017-12-07 13:48:52 UTC
I can confirm a similar behavior in okular 1.2.3 in OpenSUSE Tumbleweed. This concerns various shortcuts as "Selection tool", "Fit Width", "View|Facing pages". I would like to set up these shortcuts as I did in earlier versions. Unfortunately, I am only able to use them once after assigning, then they are forgotten and reverted to the default shortcuts.
Comment 3 chrisy 2017-12-21 12:15:18 UTC
Same problem here with Kubuntu 17.04 and okular 1.0.3

Also affects Single Page / Facing Pages and Continuous toggles.
Comment 4 frafl 2018-04-19 09:21:24 UTC
Similar Problem with show/hide navigation area and main toolbar on
Ubuntu 17.10 and 18.04 (Okular 1.3.3).

Where are the shortcuts saved?
$HOME/.config/okularrc only shows the shortcut for the main toolbar.
Comment 5 Kai 2018-06-11 18:10:20 UTC
I can confirm this bug for Okular 1.3.3 with:
Qt: 5.9.5
KDE Frameworks: 5.44.0
Comment 6 Christoph Feck 2018-11-30 14:02:31 UTC
*** Bug 361573 has been marked as a duplicate of this bug. ***
Comment 7 Angelos Skembris 2018-12-21 10:09:32 UTC
Bug still present in version 1.4.2, the keyboard short-cut works only once and is not remembered. Using OpenSUSE Tumbleweed.
Comment 8 Laura David Hurka 2019-06-09 17:44:41 UTC
(In reply to kadlecf from comment #2)
> I can confirm a similar behavior in okular 1.2.3 in OpenSUSE Tumbleweed.
> This concerns various shortcuts as "Selection tool", "Fit Width",
> "View|Facing pages". I would like to set up these shortcuts as I did in
> earlier versions. Unfortunately, I am only able to use them once after
> assigning, then they are forgotten and reverted to the default shortcuts.

I can still confirm that with Okular 1.7.2. It does not affect all actions, e. g. setting shortcuts for auto-scrolling works fine. (Who needs that?..)
Comment 9 Laura David Hurka 2020-08-23 17:23:19 UTC
*** Bug 419203 has been marked as a duplicate of this bug. ***
Comment 10 Bug Janitor Service 2020-08-23 17:46:34 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/251
Comment 11 Bug Janitor Service 2020-09-30 16:06:11 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/290
Comment 12 Laura David Hurka 2021-06-06 10:44:24 UTC
Fixed in KXmlGui instead of in Okular. Should be fixed when updating to KF 5.78.