From: "Drew Adams" <drew.adams@oracle.com>
To: "'David Reitter'" <david.reitter@gmail.com>,
"'Emacs-Devel devel'" <emacs-devel@gnu.org>
Subject: RE: Modifier state?
Date: Fri, 13 Feb 2009 12:25:46 -0800 [thread overview]
Message-ID: <009201c98e19$414f4350$0200a8c0@us.oracle.com> (raw)
In-Reply-To: <1B1D3F3E-49CC-4488-B3D8-5189B834412E@gmail.com>
> Do we have a way to detect the modifier state from the Lisp
> level, or bind commands to modifier state changes?
>
> I'd like to run a command whenever the user presses and releases the
> Meta (not ESC) key. This would be on non-TTY sessions.
>
> A lot of applications show additional info when you press Alt/Option
> (which is Meta for me); they even update the menus with alternative
> functions. The user can even view a menu, press and hold Alt/Option
> and see the menu items change.
Someone else will perhaps correct this or provide more up-to-date info, but you
might take a look at function `event-modifiers'.
See the Elisp manual, nodes Keyboard Events and Classifying Events.
next prev parent reply other threads:[~2009-02-13 20:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-13 20:18 Modifier state? David Reitter
2009-02-13 20:25 ` Drew Adams [this message]
2009-02-14 1:43 ` Stefan Monnier
2009-02-14 14:34 ` David Reitter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='009201c98e19$414f4350$0200a8c0@us.oracle.com' \
--to=drew.adams@oracle.com \
--cc=david.reitter@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).