How can I diagnose why my ctrl+z shortcut is not working?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How can I diagnose why my ctrl+z shortcut is not working?
Hi everyone,
I can not for the life of me find why something as simple like creating a shortcut is not working.
I'm using Manjaro with KDE Plasma as a DE, I've configured it completely for my linking and im just noticing this is not working, the undo (ctrl+z) is not working in libre office, google docs or any other app.
I've checked my settings shortcuts and under common actions 'Undo' is correctly mapped to ctrl+z but in my kglobalshortcutsrc I cant find it. I've rebooted several times, rollback to default my shortcuts, check that my keyboard is correctly mapped and is actually sending a ctrl+z. I don't know if I have an app that is overwriting my settings or what, but I don't know how to troubleshoot how my shortcuts are captured and executed. Could someone guide me a little bit?
Read those pages, I reset the shortcut. Still no luck, I also tried to set other listed shortcut schemas in system->shortcut settings. I checked with 'xev' if the key events where correct, and they are. So its an issue with KDE, I believe its related to having an 'Undo' shortcut when is really not necessary given that most apps take ctrl+z as their own undo shortcut, but I cant find how to remove this KDE Common Actions shortcut.
I believe its related to having an 'Undo' shortcut when is really not necessary given that most apps take ctrl+z as their own undo shortcut, but I cant find how to remove this KDE Common Actions shortcut.
Are you saying there's a global Ctrl-z shortcut? No, that really shouldn't be there. It will mask the common Ctrl-z used in text editors etc., as you experienced.
I hope you can find a way to remove it.
I tested with it assigned in Plasma (as it is by default) and ctrl+z still works in Libre Office and terminal. I don't think plasma's defaults block anything.
Ok, progress. I was able to find where the Undo shortcut is stored in file, is under .config/khotkeysrc in that file I found "Undo[$d]" no idea what the $d means in this file or even what syntax this file needs to follow. While tinkering in that file I created a custom shortcut to test the syntax and set the trigger to 'Ctrl+z' it prompts me if I want to reassing it form Edit->Undo I put yes, then I go back to Edit->Undo and re set Ctrl+z there. And magically for some reason it works. For some reason I need to set it to a custom shortcut then re set it, it only works with custom shortcuts. The "fix" only works until I logout or restart though, but its some progress.
Also while trying to fix this I noticed the shortcut for me x11 widget stopped activating by pressing Meta, that was a quick fix though, as I just added it manually under kglobalshortcutsrc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.