unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* read-key-sequence(-vector) on Shift left/right gives [left]/[right], not [S-left]/[S-right] ?
@ 2004-09-07  0:02 Drew Adams
  2004-09-07 11:55 ` Kai Grossjohann
  0 siblings, 1 reply; 7+ messages in thread
From: Drew Adams @ 2004-09-07  0:02 UTC (permalink / raw)


(defun foo ()
 (interactive)
 (let ((foo (read-key-sequence-vector "" )))
 (message "foo: %s" foo)))

Execute foo, press Shift+[left] or Shift+[right]. The message ([left] or
[right]) shows that the Shift modifier is lost.

However, if you press Shift+[up] or Shift+[down], the message is [S-up] or
[S-down]. That seems correct to me.

Same thing with read-key-sequence as with read-key-sequence-vector.

Is this a bug?

I'm using Emacs 20.7.3 on Windows: (i386-*-nt5.1.2600) of Thu Dec 21 2000 on
buffy.

If I try this on Emacs 21 (21.3.50.1 - i386-mingw-nt5.1.2600 of 2004-04-27
on BERATUNG4), then the Shift modifier is lost on the S-up and S-down also.
Is this intended?

How can I read the key sequence and obtain the modifier?

Thanks,

  Drew

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-09-08  0:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-07  0:02 read-key-sequence(-vector) on Shift left/right gives [left]/[right], not [S-left]/[S-right] ? Drew Adams
2004-09-07 11:55 ` Kai Grossjohann
2004-09-07 14:32   ` read-key-sequence(-vector) on Shift left/right gives[left]/[right], " Drew Adams
2004-09-07 14:47     ` Stefan
2004-09-07 15:47       ` Drew Adams
2004-09-08  0:22     ` Richard Stallman
2004-09-08  0:47       ` Drew Adams

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).