Custom keybindings in popup menu

Asked by Milan Cermak

Hi,

I'd like to have custom movement keys for the popup completion menu, because arrow keys are really far on the keyboard. I want to use the default Emacs movement keys C-n, C-p, C-f and C-b instead of arrow keys (down, up, right, left respectively). I tried defining keys in appmenu-mode-map like so:

(define-key appmenu-mode-map (kbd "C-n") 'down)

etc. but that didn't work. Is there a way to do it?

Thanks,
Milan

Question information

Language:
English Edit question
Status:
Solved
For:
nXhtml Edit question
Assignee:
No assignee Edit question
Solved by:
lborgman
Solved:
Last query:
Last reply:
Revision history for this message
Best lborgman (lennart-borgman) said :
#1

Hi Milan,

I am afraid that is not possible. The menus are handled by the OS (or window manager) the default way and no one has implemented what you want for the menus.

You can however use the first letter in the menu alternatives instead, at least on ms windows. Does that not work for you?

Revision history for this message
Milan Cermak (milan-cermak) said :
#2

Thanks lborgman, that solved my question.

Revision history for this message
Milan Cermak (milan-cermak) said :
#3

Actually, I'm using it this way now (I started using nxhtml just a couple hours ago, but I'm loving it, it's rockin'!). I was just curious if it is possible.

Thanks for the swift reply.

Revision history for this message
lborgman (lennart-borgman) said :
#4

Then please use the 1.77 beta. (I am holding the release a little bit because of some strange problem I perhaps can fix.)