[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs does not recognise the shift key as a modifier.

From: David Vanderschel
Subject: Re: Emacs does not recognise the shift key as a modifier.
Date: Wed, 29 Oct 2003 21:58:00 -0600

 "Sandip Chitale" <> wrote in message
> That is interesting. Doesn't emacs have very low level access to
k> key scan codes so that it can distinguish when user
> is pressing Shift key + f which results in F as opposed to
> knowing that F is resulting due to Caps Lock. I say that
> because when the caps lock is on one can type Shift-f to
> get f.

Yes, it does.

I have struggled with this myself.  The catch is that,
if nothing is bound to the shifted version of a key,
then emacs defaults to whatever is bound for the
unshifted version.  However, you can still explicitly
bind a different function to the shifted version,
after which the key will behave differently depending
on the shift.

(As a side note of interest, the redundant keys of the
keypad (Windows type keyboard) can also be bound
differently from the way the equivalent keys elsewhere
are bound.  The unique names prefix "kp-".  Eg., kp-5,
or kp-prior.  Hint:  To see the key name, do C-h k on
the C- version of the key to avoid emacs' default
remapping of the key.)

  David V.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]