Re: Disabling a specific key

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 12/18/2014 04:29 PM, Patrick O'Callaghan wrote:
On Thu, 2014-12-18 at 12:27 -0700, jd1008 wrote:
On 12/18/2014 12:12 PM, Beartooth wrote:
On Thu, 18 Dec 2014 16:31:49 +0000, Patrick O'Callaghan wrote:
	[....]
I'm sure I would still hit it occasionally. The problem is that I often
don't notice until I've overwritten a bunch of characters, so I prefer
to put it beyond use.



To the original OP:
This is what I do in order to disable a key:
sudo /bin/loadkeys << 'EOF'
          keycode TheKeyCodeInQuestion = NoSymbol
EOF

If you do not know the KeyCode, run the program:
showkey

and press the key in question
and it's code will be displayed.
You must wait 10 seconds of idle
and showkey program will exit;
then run the sudo script above.

I already did the equivalent of all that using xmodmap and xev. See
earlier posts. Furthermore, the request was for a way to do it for all
input from the keyboard, not just a specific terminal session.

Thanks all the same.

poc

I do not  believe you can do it for all input from the KB because
the KB is somewhat virtualized under , whereas keyboard of /dev/tty is still
under the control of the keymaps, which is modifiable via loadkeys.

I already posted another reply with .Xdefaults translations for X managed terminals.

--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux