Bug 418250 - A single letter keyboard shortcut for the 'Delete Message' action only works once
Summary: A single letter keyboard shortcut for the 'Delete Message' action only works ...
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 5.11.3
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-27 10:47 UTC by Robin Randhawa
Modified: 2020-03-04 12:17 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 Robin Randhawa 2020-02-27 10:47:51 UTC
SUMMARY

I prefer to make typical Mutt keybindings work with my new KMail setup. This works remarkably well for pretty much everything I care about (Eg: 'M' to compose a new mail etc).

Today I noticed that:
- specifying 'D' to 'Delete Message' in the keyboard shortcuts dialog seems to register the shortcut as expected.
- re-opening the dialog before using the shortcut shows the newly registered shortcut missing.
- despite that, the binding works as expected _but_ only for the first invocation.

I am using Kubuntu 19.10 with Plasma installed from the kde-backports PPA.

The KMail version is 5.11.3. The About dialog shows the following associated libraries:

KDE Frameworks 5.67.0
Qt 5.12.4 (built against 5.12.4)
The xcb windowing system

The account type in question is Office365 over Generic IMAP but I don't think that has a bearing on the problem.

STEPS TO REPRODUCE
1. Open Settings -> Configure Keyboard Shortcuts -> Delete Message -> Alternate -> Custom
2. Press D (to be clear - I press lower case 'd' but it is displayed as 'D')
3. Press OK for the binding to be accepted and for the dialog to close
4. To verify if the binding was registered do 1 above again - the binding will not be seen to be registered (!)

Now traverse to an email and press 'D'. The mail is deleted. Try it again on another mail - the mail is not deleted.

This is reproducible by going through the sequence again.

Note that 345992 and 38955 have a similar theme - kind of.

Any help appreciated!

Thanks.

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Robin Randhawa 2020-02-27 11:05:23 UTC
I find that 2 key combinations for 'Delete Message' don't work at all (not even for the first invocation). Not sure if that has a bearing here. The combination I tried was 'Ctrl + d'.
Comment 2 Robin Randhawa 2020-03-02 15:00:23 UTC
I think I've found a relevant lead: It turns out that simply clicking the OK button in the keyboard shortcuts dialog after registering a new shortcut is _not_ enough for the shortcut to become persistently effective.

What must additionally be done is to go through the 'Manage Schemes' -> 'Current Schemes' -> 'More actions' -> 'Save shortcuts to Scheme' sequence in order for the newly registered shortcut to become persistently effective. If this isn't done, then the shortcut is weirdly in effect only for the first invocation and is then lost - even though it shows up in the dialog (!). I think that's very misleading.

I can now delete messages using my Mutt like single key ('D') shortcut.

Not sure if this is documented. I'd like to keep this bug open until either I find relevant documentation or if not, use this bug as a basis for the documentation to be created.
Comment 3 Laurent Montel 2020-03-04 12:17:40 UTC
if it"s a configure keyboard problem it's a kf5 problem no kmail problem.