Bug 343711 - changed keyboard shortcut for paste in konsole gets lost
Summary: changed keyboard shortcut for paste in konsole gets lost
Status: RESOLVED DUPLICATE of bug 343665
Alias: None
Product: frameworks-kxmlgui
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-02 21:10 UTC by Mladen Milinkovic, Max
Modified: 2015-02-10 19:30 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mladen Milinkovic, Max 2015-02-02 21:10:44 UTC
After going to Settings > Configure Shortcuts and changing "Alternate" shortcut for "Paste" action and closing/reopening konsole, shortuct is reset to bad value.
Main Shortcut is set to blank and alternate one is reset to Ctrl+Insert.


Reproducible: Always

Steps to Reproduce:
1. open konsole and go to Settings > Configure Shortcuts
2. set "Alternate" shortcut for "Paste" to whatever combination
3. press OK
4. close konsole
5. reopen konsole

Actual Results:  
Defined shortcut doesn't work and is reset to strange values.

Expected Results:  
Defined shortcut should work.

Am using KDE Frameworks 5.6.0, Plasma Desktop 5.2.0 on Arch Linux.
Issue was happening with konsole 14.12.1 (on plasma5, it was working fine in kde4 desktop), and is still happening after upgrade to konsole git version 3.90.901 394d1e8
Comment 1 revilo77 2015-02-04 08:48:24 UTC
I can confirm the behavior, also using Archlinux, KDE Frameworks 5.6.0 and plasma 5.2, kde apps 14.12.1.
It seems that, setting any alternative shortcut resets both primary and alternative shortcut after konsole is closed.
For instance:
1. Set alternative shortcut for next tab (Ctrl+Tab).
2. Both primary (Shift+right) and alternative (Ctrl+Tab) shortcuts work.
3. Close all konsole windows.
4. After starting konsole again, both shortcuts for switching to next tab are erased.
Comment 2 Mladen Milinkovic, Max 2015-02-08 04:12:32 UTC
Have checked out a code and this seems to be a bug in kxmlgui.

After customizing shortcut with KShortcutsDialog it appends default shortcuts to QList<QKeySequence> so it ends up being a pretty long list of duplicate shortcuts like this:
Pri+Shortcut+You+Just+Set; Alt+Shortcut+You+Just+Set; Previous+Primary+Shortcut; Previous+Alt+Shortcut
And it grows by two every time you edit the list.

Have created a patch here: https://github.com/maxrd2/kxmlgui/commit/966f6ad78a4831f49e1bfb759315b7499346b9d5
I've altered the code in few places to remove everything behind Primary and Alt shortcut.
It's probably a crappy solution, but it fixes the issue for the moment.
Hope it will help someone before a real patch is submitted.

Also paste shortcut cannot be changed in konsole and it's not caused by this.
If you try to change 'edit_paste' shortcut on next load it gets changed to " ; Ctrl+Ins".
It loses primary shortcut and alt one gets reset.
Comment 3 Mladen Milinkovic, Max 2015-02-10 19:30:57 UTC

*** This bug has been marked as a duplicate of bug 343665 ***