GNU bug report logs -
#22163
Feature request: Add support for key release event
Previous Next
Full log
Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):
>>>>> John Wiegley <address <at> 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
This bug report was last modified 9 years and 191 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.