~ubuntu-branches/debian/sid/neovim/sid

« back to all changes in this revision

Viewing changes to src/nvim/keymap.h

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2016-04-18 21:42:19 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20160418214219-1e6d4o1fwqarzk46
Tags: 0.1.3-1
* New upstream release.  (Closes: #820562)
* debian/control:
  + Remove unnecessary luarocks Build-Depends
  + Add libkvm-dev Build-Depends for kfreebsd-*
  + Add python(3)-neovim to Recommends.  (Closes: #812737)
  + Declare compiance with policy 3.9.8, no changes needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
#define TO_SPECIAL(a, b)    ((a) == KS_SPECIAL ? K_SPECIAL : (a) == \
113
113
                             KS_ZERO ? K_ZERO : TERMCAP2KEY(a, b))
114
114
 
115
 
/*
116
 
 * Codes for keys that do not have a termcap name.
117
 
 *
118
 
 * K_SPECIAL KS_EXTRA KE_xxx
119
 
 */
 
115
// Codes for keys that do not have a termcap name.
 
116
//
 
117
// K_SPECIAL KS_EXTRA KE_xxx
 
118
//
 
119
// Entries must be in the range 0x02-0x7f (see comment at K_SPECIAL).
120
120
enum key_extra {
121
121
  KE_NAME = 3           /* name of this terminal entry */
122
122
 
436
436
/* 0x01 cannot be used, because the modifier must be 0x02 or higher */
437
437
#define MOD_MASK_SHIFT      0x02
438
438
#define MOD_MASK_CTRL       0x04
439
 
#define MOD_MASK_ALT        0x08        /* aka META */
440
 
#define MOD_MASK_META       0x10        /* META when it's different from ALT */
441
 
#define MOD_MASK_2CLICK     0x20        /* use MOD_MASK_MULTI_CLICK */
442
 
#define MOD_MASK_3CLICK     0x40        /* use MOD_MASK_MULTI_CLICK */
443
 
#define MOD_MASK_4CLICK     0x60        /* use MOD_MASK_MULTI_CLICK */
 
439
#define MOD_MASK_ALT        0x08        // aka META
 
440
#define MOD_MASK_META       0x10        // META when it's different from ALT
 
441
#define MOD_MASK_2CLICK     0x20        // use MOD_MASK_MULTI_CLICK
 
442
#define MOD_MASK_3CLICK     0x40        // use MOD_MASK_MULTI_CLICK
 
443
#define MOD_MASK_4CLICK     0x60        // use MOD_MASK_MULTI_CLICK
 
444
#define MOD_MASK_CMD        0x80        // "super" key (OSX/Mac: command-key)
444
445
 
445
446
#define MOD_MASK_MULTI_CLICK    (MOD_MASK_2CLICK|MOD_MASK_3CLICK| \
446
447
                                 MOD_MASK_4CLICK)
451
452
 */
452
453
#define MAX_KEY_NAME_LEN    25
453
454
 
454
 
/* Maximum length of a special key event as tokens.  This includes modifiers.
455
 
 * The longest event is something like <M-C-S-T-4-LeftDrag> which would be the
456
 
 * following string of tokens:
457
 
 *
458
 
 * <K_SPECIAL> <KS_MODIFIER> bitmask <K_SPECIAL> <KS_EXTRA> <KT_LEFTDRAG>.
459
 
 *
460
 
 * This is a total of 6 tokens, and is currently the longest one possible.
461
 
 */
 
455
// Maximum length of a special key event as tokens.  This includes modifiers.
 
456
// The longest event is something like <M-C-S-T-4-LeftDrag> which would be the
 
457
// following string of tokens:
 
458
//
 
459
// <K_SPECIAL> <KS_MODIFIER> bitmask <K_SPECIAL> <KS_EXTRA> <KE_LEFTDRAG>.
 
460
//
 
461
// This is a total of 6 tokens, and is currently the longest one possible.
462
462
#define MAX_KEY_CODE_LEN    6
463
463
 
464
464