Bug 317117

Summary: Cannot assign Shift+Ins to "Paste Without Formatting" in composer
Product: [Applications] kmail2 Reporter: Lastique <andysem>
Component: composerAssignee: kdepim bugs <kdepim-bugs>
Status: CONFIRMED ---    
Severity: normal CC: montel
Priority: NOR    
Version: 5.1.3   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Lastique 2013-03-21 09:42:36 UTC
If I try to reassign the keyboard shortcut Shift+Ins (which is alternate for "Paste" by default) to "Paste Without Formatting" alternate in email composer, the shortcut is not reassigned. Pressing Shift+Ins results in the same behavior as a regular "Paste", despite the fact that the shortcut is displayed to be assigned to "Paste Without Formatting".


Reproducible: Always

Steps to Reproduce:
1. Open kmail composer (e.g. by creating a new mail). Go to Settings->Configure shortcuts.
2. Select "Paste Without Formatting" primary or alternate shortcut and change it to Shift+Ins. Confirm if it asks whether it should reassign the shortcut from "Paste".
3. Open Chrome or Chromium and open any web page. Copy the URL in the address bar (Ctrl+Ins). Note: the browser is essential, won't work with Firefox.
4. Go back to the email composer and try to paste the URL into the message body by pressing Shift+Ins. Also try pasting by selecting Edit->Paste and Edit->Paste Without Formatting in the menu for comparison.
Actual Results:  
Pressing Shift+Ins invokes behavior similar to regular Paste - a context window shows requesting to choose pasting behavior (paste plain text or attachment). "Paste Without Formatting" pastes the URL as plain text without any menus.

Expected Results:  
Shift+Ins should behave according to what is set in the shortcuts settings (perform "Paste Without Formatting" in my case).

This bug originates from another bug: https://bugs.kde.org/show_bug.cgi?id=316944
Comment 1 Laurent Montel 2013-03-25 06:25:05 UTC
I confirm it.
Comment 2 Denis Kurz 2016-09-24 18:07:27 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 3 Lastique 2016-09-25 01:31:27 UTC
Kmail 5.1.3 in Kubuntu 16.04 behaves differently than the one I reported the problem against. But the problem still persists.

The original problem was that pasting links from Chrome in the composer would invoke a menu and there was no way around it (the keyboard shortcut did not avoid the menu).

Currently, the menu does not appear whether you do a regular paste or paste without formatting. However, you can see that the shortcut still cannot be reassigned. Here's the updated repro:

1. Open kmail composer (e.g. by creating a new mail). Go to Settings->Configure shortcuts.
2. Select "Paste Without Formatting" primary or alternate shortcut and change it to Shift+Ins. Confirm if it asks whether it should reassign the shortcut from "Paste".
3. Open Chrome or Chromium and open any web page. Copy the URL in the address bar (Ctrl+Ins). Note: the browser is essential, won't work with Firefox.
4. Go back to the email composer.
5. Ensure you have Rich Text editing mode enabled.
6. Paste the URL into the message body by pressing Shift+Ins. Also try pasting by selecting Edit->Paste and Edit->Paste Without Formatting in the menu for comparison.

What you will see that Paste puts the URL formatted as an URL (e.g. blue underlined) and Paste Without Formatting puts it as plain text. Shift+Ins, despite being reassigned, acts equivalently to Paste.