The IntelliJ IDEA short-cut to reformat source code is Ctrl+Alt+L. This happens to lock the screen in KDE (Gnome too?). How can I disable this so IntelliJ receives the key sequence?
13 Answers
Under the K menu, go to the Control Center.
Regional & Accessibility | Keyboard Shortcuts | Shortcut Schemes tab, Global Shortcuts tab.
In the search box, type "lock", which should narrow the visible shortcuts and show the Ctrl+Alt+L one ("Lock Session").
Underneath, click None.
Click the Apply button.
On KDE Plasma 5 go to System Settings | Desktop Behaviour | Screen Locking
Here you will find a "Keyboard Shortcut" option. Change it to something else or set to none
On Kubuntu 11.10 it's well hidden:
- Start System Settings
- Under Common Appearance and Behavior, select Shortcuts and Gestures.
- Select Global Keyboard Shortcuts in the left-hand panel.
- Select the KDE Component: Run Command Interface (important, otherwise you won't see the ctrl-alt-L mapping!)
- Select Lock Session
- Edit the setting, either choose a different mapping or 'none'.
-
@German sorry to hear that. KUbuntu 11.10 is pretty old by now. :) Commented Apr 15, 2013 at 1:39
-
For Kubuntu 13.10, instead of the Run Command Interface, select The KDE Session Manager. In there, you will find the Lock Session option.– EdenshawCommented May 19, 2014 at 15:05
-
1In Kubuntu 15.04 they have moved it again. No it is in System Settings >> Shortcuts >> Global Keyboard Shortcuts >> ksmserver >> Lock Session Commented Jun 6, 2015 at 7:31
I eventually found how to disable the lock screen key binding (Ctrl-Alt-L) in the System Setting app.
System Settings->"Keyboard Mouse->Keyboard Shortcuts
I had to choose the KDE component: Run Command Interface.
I'm running KDE on Fedora Core 9.
For Linux Mint: System Settings -> Keyboard -> Keyboard Shortcuts -> System -> Lock screen
-
What a great idea to show you the key combination only once you've clicked on a command, isn't it? Because if you want to disable a certain one, you have to click on ALL commands until you find the right one. Good job, Mint.– DanManCommented Nov 12, 2014 at 9:11
It's easy to disable all global keyboard shortcuts in KDE for specific applications. I've done it in KDE 4 and now I've done it in KDE 5 again. So in KDE 5 right click on your application's window title -> More actions -> Special Window Settings (or Special Application Settings) -> Appearance & Fixes -> Ignore Global Shortcuts -> Force, Yes. It's much easier than to look for each shortcut one by one.
You can check such configurations in System Settings -> Window Management -> Window Rules.
-
1I usually replace alt with win (use the windows key instead of alt) so that I can use Intellij, but for some reason the global shortcuts comes back from time to time, so this solution is much better. Commented Apr 19, 2016 at 15:45
Instead of disabling anything, you can also use ctrl+meta+alt+l in most applications where this problem exists. KDE knows the meta key (aka the 'windows key'), but the applications seem to ignore it and consider it to be just ctrl+alt+l.
-
Confirmed for Ubuntu 16.0.4, running in VirtualBox on Windows host. Commented Apr 13, 2017 at 10:29
I know, old question, but I didn't easily find a decent answer. If anybody is wondering how to disable it on Ubuntu (while the Windows_key + L shortcut will still work):
Go to Settings -> Keyboard -> Shortcuts tab -> System -> select Lock screen and press backspace
to clear it.
-
Thanks. Was not able to find the key to disable it by my own.– guleriaCommented May 18, 2016 at 9:35
For KDE Plasma 5
1 - click on K menu, type keyboard, choose Global Keyboard shortcuts
2 - Choose the KDE Session Manager
in KDE component , at Lock Session
, do what you want, disable the shortcut or choose another!
For Ubuntu 16.04 System settings -> Keyboard -> Shortcut -> System -> LockScreen -> click-it and make changes
I changed my to ctrl+alt+H from ctrl+atl+L
Here is the Screen shot which tells where the above instructions will lead you to. Keyboard -> shortcuts
Another option is to change the Idea keymap to use Default for KDE. You can go to File -> settings -> keymap and then select the Default for KDE option from the drop down
Also you can change it with the configuration file.
The following files store the keyboard shortcuts of KDE Plasma 5 and of some of its associated applications such as Konsole and KWrite.
~/.config/kdeglobals
~/.config/kglobalshortcutsrc
~/.config/khotkeysrc
~/.config/kwinrc
~/.config/plasma-org.kde.plasma.desktop-appletsrc
~/.local/share/kxmlgui5/katepart/katepart5ui.rc
~/.local/share/kxmlgui5/konsole/konsoleui.rc
~/.local/share/kxmlgui5/konsole/sessionui.rc
~/.local/share/kxmlgui5/kwrite/kwriteui.rc
Let me add descriptions for the files.
Standard Shortcuts (System Settings > Shortcuts) ~/.config/kdeglobals
Global Shortcuts (System Settings > Shortcuts) ~/.config/kglobalshortcutsrc
"Custom Shortcuts" (System Settings > Shortcuts) ~/.config/khotkeysrc
Konsole ~/.local/share/kxmlgui5/konsole/konsoleui.rc ~/.local/share/kxmlgui5/konsole/sessionui.rc
KWrite > Settings > Configure Shortcuts... > KWrite ~/.local/share/kxmlgui5/kwrite/kwriteui.rc
KWrite > Settings > Configure Shortcuts... > Kate Part ~/.local/share/kxmlgui5/katepart/katepart5ui.rc