[SOLVED] Unable to turn off some keyboard shortcuts

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] Unable to turn off some keyboard shortcuts

Postby eldiener » Dec 23rd, '13, 02:11

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 ?
Last edited by eldiener on Dec 23rd, '13, 20:23, edited 1 time in total.
eldiener
 
Posts: 57
Joined: Oct 22nd, '12, 01:44

Re: Unable to turn off some keyboard shortcuts

Postby doktor5000 » Dec 23rd, '13, 03:06

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 ~]$
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18073
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Unable to turn off some keyboard shortcuts

Postby eldiener » Dec 23rd, '13, 20:23

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.
Last edited by doktor5000 on Dec 23rd, '13, 20:38, edited 1 time in total.
Reason: removed fullquote
eldiener
 
Posts: 57
Joined: Oct 22nd, '12, 01:44

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

Postby doktor5000 » Dec 23rd, '13, 20:38

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18073
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest