LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How can I diagnose why my ctrl+z shortcut is not working? (https://www.linuxquestions.org/questions/linux-newbie-8/how-can-i-diagnose-why-my-ctrl-z-shortcut-is-not-working-4175710643/)

ras_t110e5 04-10-2022 01:58 PM

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?

Thanks,
Regards.

teckk 04-10-2022 04:38 PM

https://wiki.archlinux.org/title/KDE
https://www.addictivetips.com/ubuntu...-kde-plasma-5/

ras_t110e5 04-11-2022 08:40 AM

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.

ondoho 04-11-2022 10:14 AM

Quote:

Originally Posted by ras_t110e5 (Post 6345309)
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.

enigma9o7 04-11-2022 11:15 PM

1 Attachment(s)
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.

ras_t110e5 04-14-2022 11:00 PM

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.

I'll keep checking what is happening with ctrl+z.

ondoho 04-15-2022 01:07 AM

Quote:

Originally Posted by enigma9o7 (Post 6345482)
I tested with it assigned in Plasma (as it is by default) and ctrl+z still works in Libre Office and terminal.

Well then it isn't truly global. Maybe just in the context of Plasma software.


All times are GMT -5. The time now is 11:14 PM.