unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alexander Klimov <alserkli@inbox.ru>
To: emacs-devel@gnu.org
Subject: Monitoring KeyRelease
Date: Thu, 5 Jul 2012 20:25:34 +0300	[thread overview]
Message-ID: <TheMailAgent.31fd4b9b@5cc69ef2> (raw)

Instead of normal modifiers (C-, M-, ...), it would be nice to use the 
usual keys (such as `f' or `j') as modifiers and thus do the most 
common operations without leaving the home row (e.g., instead of 
C-f/C-b do, say, j-f/j-b, that is hold j and press either f or b).

key-chord.el shows that it is possible to use the time to decide that 
several keys represent a chord. This approach is inconvenient since it 
requires the keys to be never used in usual words and does not allow 
to hold the "modifier" and repeat only the other key.

The proper way seems to require handling KeyPress/KeyRelase, but it 
seems Emacs currently ignores KeyRelease (xterm.c:6680).

Do I understand correctly that in the current Emacs version, while 
processing a keypress, it is impossible to get information about which 
other keys are pressed? What you think is the easiest way to fix this?

-- 
Regards,
ASK



             reply	other threads:[~2012-07-05 17:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-05 17:25 Alexander Klimov [this message]
2012-07-05 20:14 ` Monitoring KeyRelease Stefan Monnier
2012-07-06 18:38   ` Alexander Klimov
2012-07-06 18:47     ` Andreas Schwab
2012-07-06 21:20       ` Alexander Klimov
2012-07-06 19:00     ` chad
2012-07-06 22:05       ` Alexander Klimov

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=TheMailAgent.31fd4b9b@5cc69ef2 \
    --to=alserkli@inbox.ru \
    --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).