Bug 233260 - Shortcut keys not working
Summary: Shortcut keys not working
Status: RESOLVED UNMAINTAINED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_khotkeys (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-04 17:22 UTC by RalphB
Modified: 2024-03-04 19:41 UTC (History)
2 users (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 RalphB 2010-04-04 17:22:49 UTC
Version:           0.8 (using 4.4.2 (KDE 4.4.2), Kubuntu packages)
Compiler:          cc
OS:                Linux (x86_64) release 2.6.32-19-generic

I've defined several shortcut keys in the menu editor, e.g.,
Meta+W for starting Firefox or Meta+E for starting Emacs.  None of these work, however.

If Konsole has focus, pressing Meta+E will not launch Emacs.  Instead, the Konsole window will receive the letter 'e'.

Shortcuts defined via System Settings (e.g., Meta+Backspace for killing the current window) work just fine, though.

Note that this bug is very similar to Bug #170455.  The proposed workaround does not work, however, as khotkeyrc already shows the entires as Enabled=true:

...
[Data_1_6]
Comment=emacs23.desktop
Enabled=true
Name=GNU Emacs 23
Type=MENUENTRY_SHORTCUT_ACTION_DATA

[Data_1_6Actions]
ActionsCount=1

[Data_1_6Actions0]
CommandURL=emacs23.desktop
Type=MENUENTRY

[Data_1_6Conditions]
Comment=
ConditionsCount=0

[Data_1_6Triggers]
Comment=Simple_action
TriggersCount=1

[Data_1_6Triggers0]
Key=Meta+E
Type=SHORTCUT
Uuid={b3802d40-f4d6-4465-84dd-109145547a84}
...
Comment 1 RalphB 2010-04-10 22:23:46 UTC
As it turns out, kmenuedit shortcut keys need to be activated separately in Input Actions.

Thus, this is not a bug in kmenuedit, but a poor default setting in System Settings.  Since changing the default is recommended, I'll keep this ticket open.
Comment 2 RalphB 2010-04-10 22:29:22 UTC
On second thought, I've opened Bug 233989.
Comment 3 RalphB 2021-01-23 10:23:16 UTC
Well, not so fast.  I'm using Kubuntu 20.04 LTS now, and some shortcuts work, while others do not.

At first, no shortcut was working.  That was because I had several instances of /usr/bin/kglobalaccel5 running at the same time, for each user on my machine.  After killing all but one instance, many shortcuts started to work.

In Settings -> Global Shortcuts, I can see all my shortcuts, including Meta+Return for Konsole (works), Meta+W for Firefox (works), Meta+C for KCalc (does not work), Meta+Print for Spectacle (does not work), and Meta+S for System Settings (does not work).

I cannot see a pattern here, and all of those shortcuts are listed under "Global shortcuts".

So why are some shortcuts working, and some are not?

Note: I don't really see any connection with kmenuedit any more.
Comment 4 Nate Graham 2024-03-04 19:41:47 UTC
As announced in https://pointieststick.com/2023/07/26/what-we-plan-to-remove-in-plasma-6/ and https://community.kde.org/Plasma/Plasma_6#Removals, I'm afraid KHotKeys has reached end-of-life in Plasma 6. Accordingly, all bug reports and feature requests for it must be closed now.

Most of what KHotKeys could do can already be done with the newer KGlobalAccel system in Plasma 6. A few features such as mouse gestures and triggering conditions based on changes to window states are not yet implemented in the new system. These will be added in the future if and when resources materialize for them, and/or when a kind soul submits patches to implement them! :) Meanwhile, the 3rd-party "Mouse Actions" app (https://github.com/jersou/mouse-actions) may be usable for implementing your own mouse gestures again.

Thanks for your understanding, everyone.