[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Modified keypad keys
From: |
Stefan Monnier |
Subject: |
Re: Modified keypad keys |
Date: |
Sun, 30 Sep 2012 15:45:53 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) |
> In the current trunk's `emacs -Q' when NumLock is off, `C-h k' for
> pressing the key 7 on the numeric keypad displays:
[...]
So the kp-7 vs kp-home choice is done at a low-level, as expected.
So adding remappings like S-kp-home => S-home to function-key-map is
a good idea.
[ Of course there's the question whether S-kp-home should be turned
into `home' via `kp-home' or via `S-home'. ]
> In the trunk's bindings.el shift key bindings are commented out
> with the following comment:
These are very different remappings, which seemed to be aimed at
reimplementing what your low-level keyboard code already provides.
> ;; Don't bind shifted keypad numeric keys, they reportedly
> ;; interfere with the feature of some keyboards to produce
> ;; numbers when NumLock is off.
> ;(define-key function-key-map [S-kp-1] [S-end])
> ;(define-key function-key-map [S-kp-2] [S-down])
> ;(define-key function-key-map [S-kp-3] [S-next])
> ;(define-key function-key-map [S-kp-4] [S-left])
> ;(define-key function-key-map [S-kp-6] [S-right])
> ;(define-key function-key-map [S-kp-7] [S-home])
> ;(define-key function-key-map [S-kp-8] [S-up])
> ;(define-key function-key-map [S-kp-9] [S-prior])
> (define-key function-key-map [C-S-kp-1] [C-S-end])
> (define-key function-key-map [C-S-kp-2] [C-S-down])
> (define-key function-key-map [C-S-kp-3] [C-S-next])
> (define-key function-key-map [C-S-kp-4] [C-S-left])
> (define-key function-key-map [C-S-kp-6] [C-S-right])
> (define-key function-key-map [C-S-kp-7] [C-S-home])
> (define-key function-key-map [C-S-kp-8] [C-S-up])
> (define-key function-key-map [C-S-kp-9] [C-S-prior])
> Perhaps the bottom part for C-S- should be commented out as well
> for the same reason as explained in the comment above.
Yes, probably.
Stefan
- Modified keypad keys, Per Starbäck, 2012/09/28
- Re: Modified keypad keys, Stefan Monnier, 2012/09/28
- Re: Modified keypad keys, Juri Linkov, 2012/09/28
- Re: Modified keypad keys, Stefan Monnier, 2012/09/28
- Re: Modified keypad keys, Stefan Monnier, 2012/09/28
- Re: Modified keypad keys, Juri Linkov, 2012/09/29
- Re: Modified keypad keys, Stefan Monnier, 2012/09/29
- Re: Modified keypad keys, Juri Linkov, 2012/09/30
- Re: Modified keypad keys,
Stefan Monnier <=