* how to ignore <XF86Launch1>s?
@ 2012-04-13 2:03 jidanni
0 siblings, 0 replies; 2+ messages in thread
From: jidanni @ 2012-04-13 2:03 UTC (permalink / raw)
To: help-gnu-emacs; +Cc: debian-x
Every day before my computer is completely warmed up / dried out,
it sends phantom <XF86Launch1> key presses to emacs, causing
<XF86Launch1> is undefined
<C-XF86Launch1> is undefined
etc. (The latter was when I was holding down CTRL planning to press
another key.)
In emacs how can I ignore these, via keyboard-translate-table?
I don't want to bind them to a function as they could occur at any point
e.g., C-x <C-XF86Launch1> etc.
I already use an additional USB keyboard, and in
/usr/share/X11/xorg.conf.d/66-jidanni.conf I already do
Section "InputClass"
Identifier "Bypassed Busted Keyboard"
MatchIsKeyboard "on"
# IBM Example, but can't use symlinks
# MatchDevicePath "/dev/input/by-path/platform-i8042-serio-0-event-kbd"
MatchDevicePath "/dev/input/event0"
Option "Ignore" "on"
EndSection
to stop other phantom characters, but that doesn't stop the phantom <XF86Launch1>s.
No I don't want to buy a new computer or replace the keyboard.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: how to ignore <XF86Launch1>s?
[not found] <mailman.1264.1334282613.20052.help-gnu-emacs@gnu.org>
@ 2012-04-13 15:08 ` Stefan Monnier
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2012-04-13 15:08 UTC (permalink / raw)
To: help-gnu-emacs
> In emacs how can I ignore these, via keyboard-translate-table?
> I don't want to bind them to a function as they could occur at any point
> e.g., C-x <C-XF86Launch1> etc.
(define-key input-decode-map [XF86Launch1] [])
(define-key input-decode-map [C-XF86Launch1] [])
should do the trick,
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-04-13 15:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.1264.1334282613.20052.help-gnu-emacs@gnu.org>
2012-04-13 15:08 ` how to ignore <XF86Launch1>s? Stefan Monnier
2012-04-13 2:03 jidanni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).