Bug 481864

Summary: CTRL-X and CTRL-Z are not working
Product: [I don't know] kde Reporter: _Gr33n_R10t_ <green.riot>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED NOT A BUG    
Severity: normal CC: green.riot, nate
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: kglobalshortcutsrc

Description _Gr33n_R10t_ 2024-02-26 14:58:59 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Login on Fedora with X11
2. Open a text editor like Kate
3.  Type some text like asdasdasd
4. Type CTRL-Z

OBSERVED RESULT
The typed text is not cleared.

EXPECTED RESULT
I want the undo action.

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

ADDITIONAL INFORMATION:
Comment 1 Nate Graham 2024-02-26 21:58:56 UTC
Does this only happen in Kate? Ar in any other apps as well? how about Firefox, Dolphin, or Gedit?
Comment 2 _Gr33n_R10t_ 2024-02-28 08:21:13 UTC
It happen on every applications if I kill the process the key mapping work as expeceted.

pkill kglobalaccel5
Comment 3 Nate Graham 2024-03-01 03:50:18 UTC
In that case what's going on is that there's a global shortcut bound to Ctrl+Z that's conflicting with the in-app shortcuts. This is why killing kglobalaccel fixes the issue. I'm 99% sure we don't ship anything this way by default, which would mean it's caused by distro or user misconfiguration. Look in ~/.config/kglobalshortcutsrc and see what in there is using Ctrl+Z.
Comment 4 _Gr33n_R10t_ 2024-03-01 09:16:29 UTC
Created attachment 166244 [details]
kglobalshortcutsrc

I don't have any entry for Ctrl+Z. :(
Comment 5 _Gr33n_R10t_ 2024-03-01 09:26:37 UTC
I have checked another kglobalshortcutsrc and seem that by default the Ctrl+Z and Ctrl+X is not configured in the file!
Comment 6 Nate Graham 2024-03-03 01:02:07 UTC
Hmm, then I'm not sure, but since killing kglobalaccel fixes it, and it's not affecting a new user account, then it's clear that there's *some* kind of local misconfiguration and not a bug here. I'd recommend posting about it in https://discuss.kde.org.