Modified keyboard shortcuts not remembered

Bug #151407 reported by Carey Underwood
26
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu
Confirmed
Low
Unassigned

Bug Description

Gnome has had the hidden preferences option to set keyboard shortcuts directly for some time now. The functionality allows you to set a keyboard shortcut by highlighting the menu item and pressing the key you would like associated with it. This behaviour is broken in gedit.

Setting the shortcut works as expected as long as gedit remains open, but those shortcuts are lost when you restart the program.

Normally, I'd consider such a problem to be my own fault, and duly accept resetting my preferred shortcuts each launch as my penance for using such non-standard behaviour. However, I've noticed that the option is now exposed in the appearance control panel item in gutsy ('Interface | Editable menu shortcut keys'), and as such, I now feel entitled to complain :p

My theory is that the menu accelerators are generated from the text of the menu (or otherwise hardcoded), and that there is currently no facility to override that. My theories being what they are, I don't expect that I'm right, but anyways...

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug. I don't confirm this option, changing the shortcuts work correctly on gutsy. The feature is a standard gtk one, does it work in other applications for you? Could you try with a new user if you get the same issue? What version of Ubuntu do you use? Note that the preference option is not new, it was in a separate dialog before

Changed in gedit:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Carey Underwood (cwillu) wrote :

Close gedit completely, and reopen it; you should find that the keyboard shortcuts you set have all been reset. (incremental search -> alt+/, and go to line -> alt+c are the two I have set).

This occurs with a fresh install of gutsy as well as my existing installs on other machines.

Revision history for this message
Sebastien Bacher (seb128) wrote :

When I wrote that it works here I tried to close and restart gedit which was what the bug is about. Could you reply to the other questions?

Revision history for this message
Carey Underwood (cwillu) wrote :

Okay, it wasn't quite what I thought. If I close gedit normally, it works.

It just happens that the only time I ever have it completely closed is after a power failure, remote disconnect (running it over ssh), or other similar circumstances. My bad.

I would still expect the shortcuts to be saved even if the app was killed later (as opposed to cleanly shut down).

Revision history for this message
Carey Underwood (cwillu) wrote :

Fiesty and gutsy show the same behaviour (losing the preferences on an unclean shutdown of gedit), on fresh users.

Revision history for this message
Carey Underwood (cwillu) wrote :

I get the same behaviour out of other gnome applications, so it's not a gedit issue.

Revision history for this message
Patrick Byrne (pjlbyrne) wrote :

This is still a problem - and it is quite annoying. Is there any move to address this issue, please?

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Can you try with latest Ubuntu release? Thanks in advance.

Revision history for this message
Patrick Byrne (pjlbyrne) wrote : Re: [Bug 151407] Re: Modified keyboard shortcuts not remembered

It appears to be fixed now. I guess you can close the bug.

Regards

2008/12/5 Chris Coulson <email address hidden>

> Thank you for taking the time to report this bug and helping to make
> Ubuntu better. You reported this bug a while ago and there hasn't been
> any activity in it recently. We were wondering is this still an issue
> for you? Can you try with latest Ubuntu release? Thanks in advance.
>
> --
> Modified keyboard shortcuts not remembered
> https://bugs.launchpad.net/bugs/151407
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Patrick Byrne

Revision history for this message
Miko Mynttinen (miko-mynttinen) wrote :

This bug is still present in Nautilus 2.41.1.

Reproducing:
1. Turn on editable menu shortcut keys from system -> preferences -> appearance -> interface -> editable menu shortcut keys.
2. Open Nautilus and hover over any option and select a new shortcut key by pressing the key.
3. Close and open Nautilus again and see your new keybind missing.

Doing this same with gnome-terminal for example, works as expected.
I've tried closing Nautilus with command line using nautilus -q, but that doesn't help either.

Revision history for this message
Holger Berndt (berndth) wrote :

You're right that Nautilus doesn't save and restore the keyboard shortcuts across restarts. You may call that a missing feature. I've sent a patch to implement this (and a related feature: the ability to assign keyboard shortcuts to scripts) to the Nautilus list. We'll see if it gets accepted.

Revision history for this message
Holger Berndt (berndth) wrote :

Both patches have been accepted, and will be included in the next Nautilus version (likely already the one shipping with Gnome 2.26.1, due in a few days).

Revision history for this message
rusivi2 (rusivi2-deactivatedaccount) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue that you reported should be reproducible with the live environment of the Desktop CD development release - Maverick Meerkat. It would help us greatly if you could test with it so we can work on getting it fixed in the next release of Ubuntu. You can find out more about the development release at http://www.ubuntu.com/testing/. Thanks again and we appreciate your help.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Ubuntu because there has been no activity for 60 days.]

Changed in ubuntu:
status: Incomplete → Expired
Revision history for this message
Vasiliy Faronov (vfaronov) wrote :

This happens again in 12.04.
Some applications (gedit, eog) allow changing shortcuts and persist them over launches.
Other applications (nautilus, gucharmap) allow changing shortcuts, but forget them once their process ends.
Yet other applications (gcalctool) don’t allow changing shortcuts at all.

Changed in ubuntu:
status: Expired → New
Changed in ubuntu:
status: New → Confirmed
Revision history for this message
Wolf (drechsel) wrote :

In ubuntu 15.04, neither in evolution, nor in gedit assigning any keyboard shortcuts with the "easy" method (select the menu item, then press the desired shortcut) works.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.