On Mon, May 31, 2010 at 02:41:10PM +0000, Daniel wrote:
> Can I bind a key to generate another key?
> 
> Typically, I would like to bind C-n/C-p to generate Down/Up (so that
> it can be passthrough, or whatever) in content-buffer text and select
> (for those comboboxes, google textfield-popups, and such)

Yes, like this:

  require("global-overlay-keymap");
  define_key_alias("C-n", "down");
  define_key_alias("C-p", "up");


This only sends the keypress event, not keydown or keyup.  Let me know if
you find a situation where this is not good enough.

-- 
John Foerch
_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror

Reply via email to