From: Stefan Monnier <monnier@iro.umontreal.ca>
To: David Reitter <david.reitter@gmail.com>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: Modifier state?
Date: Fri, 13 Feb 2009 20:43:57 -0500 [thread overview]
Message-ID: <jwviqnd3igl.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <1B1D3F3E-49CC-4488-B3D8-5189B834412E@gmail.com> (David Reitter's message of "Fri, 13 Feb 2009 15:18:47 -0500")
> Do we have a way to detect the modifier state from the Lisp level, or bind
> commands to modifier state changes?
No.
I did some simple experiments with it, in order to get events like
<control> and <down-control> (which actually were <down-control> and
<C-control> because when the release event is received, the modifier
state is not yet cleared). I did get it to work OK without too much
trouble (mostly I had to add some function-key-map entries to drop those
events when not bound, and I had to rework C-q so that it waits for
a "real" key press rather than stopping at the <down-control>), but
haven't investigated much further.
Stefan
next prev parent reply other threads:[~2009-02-14 1:43 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
2009-02-14 1:43 ` Stefan Monnier [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwviqnd3igl.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.