How to configure global environment shortcuts in KDE Plasma 5 on GNU/Linux for Ctrl+Backspace and Ctrl+Del to delete only whitespaces and new lines in all GUI applications which do not override this shortcut?
def function(self, argument):
Place the cursor after the
, and press Ctrl+Del. Expected behavior: only spaces are deleted. Actual behavior: spaces and
argument are deleted.
if True : pass
Place the cursor before the
: and press Ctrl+Backspace. Expected behavior: only new line is deleted. Actual behavior: new line and
True are deleted.
Default shortcuts are unusable (for me). I know only two applications which have an expected behavior: KDevelop and NetBeans. It seems to me that they override a global shortcut while other applications do not.
I would like to have the same behavior in all my applications: Chromium, Thunderbird, each of the LibreOffice applications, Atom, Eclipse, Kate, any application where a input text. I don't want to spend hours trying to configure each of them. Some of them don't even have such configuration options. Is there a way to configure a global system-wide shortcuts for this?