Page 1 of 1

[SOLVED] Unable to turn off some keyboard shortcuts

PostPosted: Dec 23rd, '13, 02:11
by eldiener
In Mageia 3 using KDE I succesfully use the JEdit programmers editor. A number of the shortcuts I have setup under JEdit seem to be used by Mageia somewhere at the OS or KDE level. I try to find where they are used by Mageia as shortcuts so that I can turn them off in Mageia in order to use them in JEdit. But I have not been able to do so in all cases.

As an example the combination Ctrl-F7 is used by me in JEdit for certain functionality ( in my case it is to duplicate lines ). Therefore I want to remove its shortcut association in Mageia/KDE. If I open the System Settings and choose Shortcuts and Gestures I see Custom Shortcuts, Standard Keyboard Shortcuts, and Global Keyboard Shortcuts, But nowhere in any of these shortcuts do I see Ctrl-F7 described so I can eliminate it as a shortcut. But clearly it is used by something in my Mageia/KDE setup. I know this by the fact that not only does it not work under JEdit but if I try to type it in under the JEdit dialog that lets me setup a JEdit shortcut, the dialog itself moves to outside the JEdit main window and the key combination never gets entered in the dialog. So clearly Ctrl-F7 has something like the Mageia/KDE functionality of moving a window to some place outside of its parent window. Whatever its Mageia/KDE functionality for Ctrl-F7 I want to disable it so I can use it in JEdit for my normal purposes.

Ctrl-F7 is just one example of a key combination I use in JEdit which I cannot seem to disable at the Mageia/KDE level. My general question is therefore: Where to I find keyboard shortcuts outside of the ones in the Shortcuts and Gestures areas of the System Settings so I can disable he ones I want ?

Re: Unable to turn off some keyboard shortcuts

PostPosted: Dec 23rd, '13, 03:06
by doktor5000
Simply create a new shortcut via Shortcuts and Gestures -> custom shortcuts -> edit -> new -> global shortcut -> command/URL and switch to the tab trigger. Click on the button that says "None" press Ctrl+F7 and you will see that this shortcut belongs to kwin -> switch show windows (window class) and you also get a chance to reassign, which clears the other defined mapping so you can use it. If you remove your newly created global shortcut Ctrl+F7 is unassigned afterwards.

Under Shortcuts and Gestures -> standard shortcuts search is enabled. For Shortcuts and Gestures -> global shortcuts too, but only for the component selected at the top. If you choose Kwin there and search for e.g. F7 you will see the existing shortcut (if you haven't cleared/reassigned it yet).

Shortcuts that are not defined by KDE are usually for the whole system and come from the keyboard definition for the X server.
You can dump that mapping into a file via
Code: Select all
xkbcomp $(echo $DISPLAY) test.dump
and then search in the file test.dump for the shortcuts via text editor or grep. There we can see that e.g. Ctrl+Alt+F7 is bound to switch to VT7

[doktor5000@Mageia3 ~]$ xkbcomp $(echo $DISPLAY) test.dump
[doktor5000@Mageia3 ~]$ grep -B2 -i f7 test.dump
key <FK07> {
type= "CTRL+ALT",
symbols[Group1]= [ F7, F7, F7, F7, XF86Switch_VT_7 ]
[doktor5000@Mageia3 ~]$

Re: Unable to turn off some keyboard shortcuts

PostPosted: Dec 23rd, '13, 20:23
by eldiener
Thank you. I missed the different components under the global shortcuts completely. After disabling the ones I want everything now works fine in my editor.

Re: Unable to turn off some keyboard shortcuts [solved]

PostPosted: Dec 23rd, '13, 20:38
by doktor5000
Please next time do not use fullquotes, but only use the Reply function. Greatly improves clarity and reading flow ;)

Please mark the thread accordingly by editing the topic of the first post and prefix it by [SOLVED], thanks