unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* does emacs know (xev-like) when a modifier key is pressed?
@ 2012-09-13 14:00 Joe Corneli
  0 siblings, 0 replies; 4+ messages in thread
From: Joe Corneli @ 2012-09-13 14:00 UTC (permalink / raw)
  To: help-gnu-emacs

I'd like to create a little mode-line "lighter" that will show which
combination of modifier keys is pressed.  (My keyboard has a sticky
key problem, so this would help me diagnose how to unjam the keys.)
Does Emacs know which modifiers are "on" at a given moment?



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: does emacs know (xev-like) when a modifier key is pressed?
       [not found] <mailman.8776.1347544852.855.help-gnu-emacs@gnu.org>
@ 2012-09-13 14:43 ` Pascal J. Bourguignon
  2012-09-13 14:49 ` Jason Rumney
  2012-09-13 15:41 ` Stefan Monnier
  2 siblings, 0 replies; 4+ messages in thread
From: Pascal J. Bourguignon @ 2012-09-13 14:43 UTC (permalink / raw)
  To: help-gnu-emacs

Joe Corneli <holtzermann17@gmail.com> writes:

> I'd like to create a little mode-line "lighter" that will show which
> combination of modifier keys is pressed.  (My keyboard has a sticky
> key problem, so this would help me diagnose how to unjam the keys.)
> Does Emacs know which modifiers are "on" at a given moment?

M-x apropos RET modifier RET


-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
A bad day in () is better than a good day in {}.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: does emacs know (xev-like) when a modifier key is pressed?
       [not found] <mailman.8776.1347544852.855.help-gnu-emacs@gnu.org>
  2012-09-13 14:43 ` does emacs know (xev-like) when a modifier key is pressed? Pascal J. Bourguignon
@ 2012-09-13 14:49 ` Jason Rumney
  2012-09-13 15:41 ` Stefan Monnier
  2 siblings, 0 replies; 4+ messages in thread
From: Jason Rumney @ 2012-09-13 14:49 UTC (permalink / raw)
  To: gnu.emacs.help; +Cc: help-gnu-emacs

On Thursday, 13 September 2012 22:00:53 UTC+8, Joe Corneli  wrote:

> Does Emacs know which modifiers are "on" at a given moment?

No. Certainly not at the lisp level. On some platforms that do not support all modifiers being applied to any key, the C code has knowledge for some modifiers, but it isn't exposed outside of the keyboard handling code (see mod_key_state in w32inevt.c for example)




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: does emacs know (xev-like) when a modifier key is pressed?
       [not found] <mailman.8776.1347544852.855.help-gnu-emacs@gnu.org>
  2012-09-13 14:43 ` does emacs know (xev-like) when a modifier key is pressed? Pascal J. Bourguignon
  2012-09-13 14:49 ` Jason Rumney
@ 2012-09-13 15:41 ` Stefan Monnier
  2 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2012-09-13 15:41 UTC (permalink / raw)
  To: help-gnu-emacs

> Does Emacs know which modifiers are "on" at a given moment?

Emacs could know (at least under X11 and probably under other GUIs as
well), but it currently opts to stay in the dark.


        Stefan


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-09-13 15:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.8776.1347544852.855.help-gnu-emacs@gnu.org>
2012-09-13 14:43 ` does emacs know (xev-like) when a modifier key is pressed? Pascal J. Bourguignon
2012-09-13 14:49 ` Jason Rumney
2012-09-13 15:41 ` Stefan Monnier
2012-09-13 14:00 Joe Corneli

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).