Question

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?

Was it helpful?

Solution

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

OTHER TIPS

On Kubuntu 11.10 it's well hidden:

  1. Start System Settings
  2. Under Common Appearance and Behavior, select Shortcuts and Gestures.
  3. Select Global Keyboard Shortcuts in the left-hand panel.
  4. Select the KDE Component: Run Command Interface (important, otherwise you won't see the ctrl-alt-L mapping!)
  5. Select Lock Session
  6. Edit the setting, either choose a different mapping or 'none'.

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

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.

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.

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.

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top