Hi,

The numeric key pad on a Apple keyboard includes an extra key labeled
"=" (which sits above key pad 8).  I would like to add this as a
special key <kEquals> so it could be mapped to just like the other key
pad key (<kPlus>, etc.).  Searching through the source code I see that
e.g. K_KPLUS is referenced to at only 7 places in the .c files so
adding this support seems easy enough by just emulating whatever
happens with K_KPLUS.

Before I do so I'd like to ask which termcap key should I choose?
Should I go for e.g. TERMCAP2KEY('K','M') (which seems to be the
"first" free key that starts with 'K', following K_K9 which is
TERMCAP2KEY('K','L')) or should I do what is done for kDel and add a
KE_KEQUALS to the key_extra enum and use TERMCAP2KEY(KS_EXTRA,
KE_KEQUALS) instead?  I don't really understand the distinction
between these.

Furthermore, there are various structs in term.c where K_KPLUS is
represented by strings like "\316N" etc. -- what should go in here?

The termcap jungle seems a bit dense to enter unguided, hence the
(hopefully) simple questions before I get hopelessly lost.

Thanks,
Björn

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui