Mercurial > vim
comparison src/keymap.h @ 179:7fd70926e2e1 v7.0055
updated for version 7.0055
author | vimboss |
---|---|
date | Fri, 04 Mar 2005 23:39:37 +0000 |
parents | 125e80798a85 |
children | 7e70fc748752 |
comparison
equal
deleted
inserted
replaced
178:4d53c2a2af94 | 179:7fd70926e2e1 |
---|---|
456 /* Bits for modifier mask */ | 456 /* Bits for modifier mask */ |
457 /* 0x01 cannot be used, because the modifier must be 0x02 or higher */ | 457 /* 0x01 cannot be used, because the modifier must be 0x02 or higher */ |
458 #define MOD_MASK_SHIFT 0x02 | 458 #define MOD_MASK_SHIFT 0x02 |
459 #define MOD_MASK_CTRL 0x04 | 459 #define MOD_MASK_CTRL 0x04 |
460 #define MOD_MASK_ALT 0x08 /* aka META */ | 460 #define MOD_MASK_ALT 0x08 /* aka META */ |
461 #define MOD_MASK_2CLICK 0x10 /* use MOD_MASK_MULTI_CLICK */ | 461 #define MOD_MASK_META 0x10 /* META when it's different from ALT */ |
462 #define MOD_MASK_3CLICK 0x20 /* use MOD_MASK_MULTI_CLICK */ | 462 #define MOD_MASK_2CLICK 0x20 /* use MOD_MASK_MULTI_CLICK */ |
463 #define MOD_MASK_4CLICK 0x30 /* use MOD_MASK_MULTI_CLICK */ | 463 #define MOD_MASK_3CLICK 0x40 /* use MOD_MASK_MULTI_CLICK */ |
464 #define MOD_MASK_4CLICK 0x60 /* use MOD_MASK_MULTI_CLICK */ | |
464 #ifdef MACOS | 465 #ifdef MACOS |
465 # define MOD_MASK_CMD 0x80 | 466 # define MOD_MASK_CMD 0x80 |
466 #endif | 467 #endif |
467 | 468 |
468 #define MOD_MASK_MULTI_CLICK (MOD_MASK_2CLICK|MOD_MASK_3CLICK|MOD_MASK_4CLICK) | 469 #define MOD_MASK_MULTI_CLICK (MOD_MASK_2CLICK|MOD_MASK_3CLICK|MOD_MASK_4CLICK) |
469 | 470 |
470 /* | 471 /* |
471 * The length of the longest special key name, including modifiers. | 472 * The length of the longest special key name, including modifiers. |
472 * Current longest is <M-C-S-4-MiddleRelease> (length includes '<' and '>'). | 473 * Current longest is <M-C-S-T-4-MiddleRelease> (length includes '<' and '>'). |
473 */ | 474 */ |
474 #define MAX_KEY_NAME_LEN 23 | 475 #define MAX_KEY_NAME_LEN 25 |
475 | 476 |
476 /* Maximum length of a special key event as tokens. This includes modifiers. | 477 /* Maximum length of a special key event as tokens. This includes modifiers. |
477 * The longest event is something like <M-C-S-4-LeftDrag> which would be the | 478 * The longest event is something like <M-C-S-T-4-LeftDrag> which would be the |
478 * following string of tokens: | 479 * following string of tokens: |
479 * | 480 * |
480 * <K_SPECIAL> <KS_MODIFIER> bitmask <K_SPECIAL> <KS_EXTRA> <KT_LEFTDRAG>. | 481 * <K_SPECIAL> <KS_MODIFIER> bitmask <K_SPECIAL> <KS_EXTRA> <KT_LEFTDRAG>. |
481 * | 482 * |
482 * This is a total of 6 tokens, and is currently the longest one possible. | 483 * This is a total of 6 tokens, and is currently the longest one possible. |