LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Disable control keys in Fedora (https://www.linuxquestions.org/questions/linux-newbie-8/disable-control-keys-in-fedora-779680/)

vinaytp 01-04-2010 03:34 AM

Disable control keys in Fedora
 
Hi all...

I have a testing application, under which I need to disable Ctrl-x and Few other keys...

My Problem is If i disable Ctrl Key using xmodmap command..All the other Ctrl combination are getting disabled...For ex: Ctrl-s, Ctrl-a etc..My goal is to enable some combination of Ctrl key and disabling some combination of Ctrl key..

How can I proceed with this...Any hint will be greatly appreciated...
Thanks in advance...

TB0ne 01-04-2010 10:13 AM

Quote:

Originally Posted by vinaytp (Post 3813355)
Hi all...

I have a testing application, under which I need to disable Ctrl-x and Few other keys...

My Problem is If i disable Ctrl Key using xmodmap command..All the other Ctrl combination are getting disabled...For ex: Ctrl-s, Ctrl-a etc..My goal is to enable some combination of Ctrl key and disabling some combination of Ctrl key..

How can I proceed with this...Any hint will be greatly appreciated...
Thanks in advance...

Hard to say, since you don't give any details about the application.

There are ways to ignore control keys in shell-scripts and other programs, but they're dependent ON the programs. The way you'd do it for a shell script is different from how you do it in C, Perl, etc.

If you just disable the ctrl key, why not go under your desktop environment, and remap that function to some other key combination? Again, you give no details, but both KDE and Gnome have places to map keys to do different things.


All times are GMT -5. The time now is 02:43 PM.