unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Simon Friis Vindum <simonfv@gmail.com>
To: 22163@debbugs.gnu.org
Subject: bug#22163: Feature request: Add support for key release event
Date: Tue, 15 Dec 2015 21:15:29 +0100	[thread overview]
Message-ID: <CAGqLG_ucFQC=u6xAh0KHD8qiOf2S2g7wLFDO_0YBQGVsWfQWLg@mail.gmail.com> (raw)
In-Reply-To: <CAGqLG_vE72KiBeUMbN8LMsokx9az1i4krzG=YyAQ0VozEyz6dg@mail.gmail.com>

>>>>> John Wiegley <address@hidden> writes:

> Those who understand the fundamentals of event handling would know better, but
> doing this right could be a rather invasive change. For example: Should
> `read-event' return once a key is pressed down; or should it wait until the
> key has been released, and then also give both the press-down and release
> times? At the moment, it just notifies the user of the key?

I was thinking that one might define a new built-in function. It could
for instance
be called `define-key-release` and behave exactly like `define-key`
except that the
passed command would be triggered on key release instead of key press.

It seems to me like that would be backwards compatible and non-invasive.

> Because once you have sensitive to "length of press", I imagine that's just
> the start of additional information you'd want about events and how they
> relate in time to each other...

I think that if you can get the press and release of a key then you have access
to all information from the hardware. Everything else can be derived from that.

Kind regards
Simon Friis Vindum





  parent reply	other threads:[~2015-12-15 20:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-13  8:58 bug#22163: Feature request: Add support for key release event Simon Friis Vindum
2015-12-14 22:17 ` John Wiegley
2015-12-15 20:15 ` Simon Friis Vindum [this message]
2015-12-15 20:27   ` John Wiegley

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='CAGqLG_ucFQC=u6xAh0KHD8qiOf2S2g7wLFDO_0YBQGVsWfQWLg@mail.gmail.com' \
    --to=simonfv@gmail.com \
    --cc=22163@debbugs.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).