com.raelity.jvi
Interface KeyDefs


public interface KeyDefs

The vim code uses character constants and key constants. Characters are unicode characters. Keys are keystrokes that do not have a character value, for example the down key is not a character. In this file define the keys used by vi. All keys must be representable in 16 bits, so that they fit into unicode strings. Further, we don't want the keys (as opposed to characters) to have a valid unicode value. The unicode spec reserves \\uE000 - \\uF8FF for private use according to the doc. So keys (not chars) are put into this range.

So set up this magic range as follows:
\\uEXYY the second hex digit "X" encodes the four modifiers, shft, ctrl, meta and alt.
The bottom byte "YY" is arbitrarily assigned below to refer to the keys.

There is a further complication for vi, some of the special keys have separate values for the shifted variety, e.g. K_S_UP is a shifted up key. The function keys also have separate defines for the shifted varieties, but we will get rid of these defines and use generic techniques when dealing with shifted items like in the map command. Note: the special shifted varieties do not have to be kept within 16 bits. These values are used primarily in switch statements and for equality tests. They could be constructed by GetChar.gotc() and GetChar.pumpChar() when a special shifted character is encountered.
Since there are less than 16 keys that have separate shifted defines, offset them from their unshifted values.
So the range \\uEX10 - \\uEX1F is for these shifted special keys, and they are identified by being in the first 16.


Field Summary
static char ALT
           
static char CTRL
           
static char K_BS
           
static char K_CCIRCM
           
static char K_DEL
           
static char K_DOWN
           
static char K_END
           
static char K_F1
           
static char K_F10
           
static char K_F11
           
static char K_F12
           
static char K_F13
           
static char K_F14
           
static char K_F15
           
static char K_F16
           
static char K_F17
           
static char K_F18
           
static char K_F19
           
static char K_F2
           
static char K_F20
           
static char K_F21
           
static char K_F22
           
static char K_F23
           
static char K_F24
           
static char K_F3
           
static char K_F4
           
static char K_F5
           
static char K_F6
           
static char K_F7
           
static char K_F8
           
static char K_F9
           
static char K_HELP
           
static char K_HOME
           
static char K_INS
           
static char K_KDIVIDE
           
static char K_KENTER
           
static char K_KMINUS
           
static char K_KMULTIPLY
           
static char K_KPLUS
           
static char K_LEFT
           
static char K_PAGEDOWN
           
static char K_PAGEUP
           
static char K_RIGHT
           
static char K_S_DOWN
           
static char K_S_END
           
static char K_S_HOME
           
static char K_S_LEFT
           
static char K_S_RIGHT
           
static char K_S_TAB
           
static char K_S_UP
           
static char K_TAB
           
static char K_UNDO
           
static char K_UP
           
static char K_X_COMMA
           
static char K_X_IM_INS_REP
           
static char K_X_IM_SHIFT_LEFT
           
static char K_X_IM_SHIFT_RIGHT
           
static char K_X_INCR_SEARCH_DONE
           
static char K_X_PERIOD
           
static char K_X_SEARCH_CANCEL
           
static char K_X_SEARCH_FINISH
           
static char K_ZERO
           
static char MAP_K_BS
           
static char MAP_K_DEL
           
static char MAP_K_DOWN
           
static char MAP_K_END
           
static char MAP_K_F1
           
static char MAP_K_F10
           
static char MAP_K_F11
           
static char MAP_K_F12
           
static char MAP_K_F13
           
static char MAP_K_F14
           
static char MAP_K_F15
           
static char MAP_K_F16
           
static char MAP_K_F17
           
static char MAP_K_F18
           
static char MAP_K_F19
           
static char MAP_K_F2
           
static char MAP_K_F20
           
static char MAP_K_F21
           
static char MAP_K_F22
           
static char MAP_K_F23
           
static char MAP_K_F24
           
static char MAP_K_F3
           
static char MAP_K_F4
           
static char MAP_K_F5
           
static char MAP_K_F6
           
static char MAP_K_F7
           
static char MAP_K_F8
           
static char MAP_K_F9
           
static char MAP_K_HELP
           
static char MAP_K_HOME
           
static char MAP_K_INS
           
static char MAP_K_KDIVIDE
           
static char MAP_K_KENTER
           
static char MAP_K_KMINUS
           
static char MAP_K_KMULTIPLY
           
static char MAP_K_KPLUS
           
static char MAP_K_LEFT
           
static char MAP_K_PAGEDOWN
           
static char MAP_K_PAGEUP
           
static char MAP_K_RIGHT
           
static char MAP_K_TAB
           
static char MAP_K_UNDO
           
static char MAP_K_UP
           
static char MAP_K_X_COMMA
           
static char MAP_K_X_IM_INS_REP
           
static char MAP_K_X_IM_SHIFT_LEFT
           
static char MAP_K_X_IM_SHIFT_RIGHT
           
static char MAP_K_X_INCR_SEARCH_DONE
           
static char MAP_K_X_PERIOD
           
static char MAP_K_X_SEARCH_CANCEL
           
static char MAP_K_X_SEARCH_FINISH
           
static char MAX_JAVA_KEY_MAP
           
static char META
           
static int MODIFIER_POSITION_SHIFT
           
static char SHFT
          modifier tags for the keys.
static char SHIFTED_VIRT_OFFSET
          the special keys that have shifted versions
static char VIRT
          Any keys as opposed to characters, must be put out of range.
 

Field Detail

VIRT

static final char VIRT
Any keys as opposed to characters, must be put out of range. This is used to flag keys (non-ascii characters).

See Also:
Constant Field Values

SHFT

static final char SHFT
modifier tags for the keys.

See Also:
Constant Field Values

CTRL

static final char CTRL
See Also:
Constant Field Values

META

static final char META
See Also:
Constant Field Values

ALT

static final char ALT
See Also:
Constant Field Values

MODIFIER_POSITION_SHIFT

static final int MODIFIER_POSITION_SHIFT
See Also:
Constant Field Values

SHIFTED_VIRT_OFFSET

static final char SHIFTED_VIRT_OFFSET
the special keys that have shifted versions

See Also:
Constant Field Values

K_CCIRCM

static final char K_CCIRCM
See Also:
Constant Field Values

K_ZERO

static final char K_ZERO
See Also:
Constant Field Values

MAP_K_UP

static final char MAP_K_UP
See Also:
Constant Field Values

MAP_K_DOWN

static final char MAP_K_DOWN
See Also:
Constant Field Values

MAP_K_LEFT

static final char MAP_K_LEFT
See Also:
Constant Field Values

MAP_K_RIGHT

static final char MAP_K_RIGHT
See Also:
Constant Field Values

MAP_K_TAB

static final char MAP_K_TAB
See Also:
Constant Field Values

MAP_K_HOME

static final char MAP_K_HOME
See Also:
Constant Field Values

MAP_K_END

static final char MAP_K_END
See Also:
Constant Field Values

MAP_K_F1

static final char MAP_K_F1
See Also:
Constant Field Values

MAP_K_F2

static final char MAP_K_F2
See Also:
Constant Field Values

MAP_K_F3

static final char MAP_K_F3
See Also:
Constant Field Values

MAP_K_F4

static final char MAP_K_F4
See Also:
Constant Field Values

MAP_K_F5

static final char MAP_K_F5
See Also:
Constant Field Values

MAP_K_F6

static final char MAP_K_F6
See Also:
Constant Field Values

MAP_K_F7

static final char MAP_K_F7
See Also:
Constant Field Values

MAP_K_F8

static final char MAP_K_F8
See Also:
Constant Field Values

MAP_K_F9

static final char MAP_K_F9
See Also:
Constant Field Values

MAP_K_F10

static final char MAP_K_F10
See Also:
Constant Field Values

MAP_K_F11

static final char MAP_K_F11
See Also:
Constant Field Values

MAP_K_F12

static final char MAP_K_F12
See Also:
Constant Field Values

MAP_K_F13

static final char MAP_K_F13
See Also:
Constant Field Values

MAP_K_F14

static final char MAP_K_F14
See Also:
Constant Field Values

MAP_K_F15

static final char MAP_K_F15
See Also:
Constant Field Values

MAP_K_F16

static final char MAP_K_F16
See Also:
Constant Field Values

MAP_K_F17

static final char MAP_K_F17
See Also:
Constant Field Values

MAP_K_F18

static final char MAP_K_F18
See Also:
Constant Field Values

MAP_K_F19

static final char MAP_K_F19
See Also:
Constant Field Values

MAP_K_F20

static final char MAP_K_F20
See Also:
Constant Field Values

MAP_K_F21

static final char MAP_K_F21
See Also:
Constant Field Values

MAP_K_F22

static final char MAP_K_F22
See Also:
Constant Field Values

MAP_K_F23

static final char MAP_K_F23
See Also:
Constant Field Values

MAP_K_F24

static final char MAP_K_F24
See Also:
Constant Field Values

MAP_K_HELP

static final char MAP_K_HELP
See Also:
Constant Field Values

MAP_K_UNDO

static final char MAP_K_UNDO
See Also:
Constant Field Values

MAP_K_BS

static final char MAP_K_BS
See Also:
Constant Field Values

MAP_K_INS

static final char MAP_K_INS
See Also:
Constant Field Values

MAP_K_DEL

static final char MAP_K_DEL
See Also:
Constant Field Values

MAP_K_PAGEUP

static final char MAP_K_PAGEUP
See Also:
Constant Field Values

MAP_K_PAGEDOWN

static final char MAP_K_PAGEDOWN
See Also:
Constant Field Values

MAP_K_KPLUS

static final char MAP_K_KPLUS
See Also:
Constant Field Values

MAP_K_KMINUS

static final char MAP_K_KMINUS
See Also:
Constant Field Values

MAP_K_KDIVIDE

static final char MAP_K_KDIVIDE
See Also:
Constant Field Values

MAP_K_KMULTIPLY

static final char MAP_K_KMULTIPLY
See Also:
Constant Field Values

MAP_K_KENTER

static final char MAP_K_KENTER
See Also:
Constant Field Values

MAP_K_X_PERIOD

static final char MAP_K_X_PERIOD
See Also:
Constant Field Values

MAP_K_X_COMMA

static final char MAP_K_X_COMMA
See Also:
Constant Field Values

MAP_K_X_SEARCH_FINISH

static final char MAP_K_X_SEARCH_FINISH
See Also:
Constant Field Values

MAP_K_X_INCR_SEARCH_DONE

static final char MAP_K_X_INCR_SEARCH_DONE
See Also:
Constant Field Values

MAP_K_X_SEARCH_CANCEL

static final char MAP_K_X_SEARCH_CANCEL
See Also:
Constant Field Values

MAP_K_X_IM_SHIFT_RIGHT

static final char MAP_K_X_IM_SHIFT_RIGHT
See Also:
Constant Field Values

MAP_K_X_IM_SHIFT_LEFT

static final char MAP_K_X_IM_SHIFT_LEFT
See Also:
Constant Field Values

MAP_K_X_IM_INS_REP

static final char MAP_K_X_IM_INS_REP
See Also:
Constant Field Values

MAX_JAVA_KEY_MAP

static final char MAX_JAVA_KEY_MAP
See Also:
Constant Field Values

K_UP

static final char K_UP
See Also:
Constant Field Values

K_DOWN

static final char K_DOWN
See Also:
Constant Field Values

K_LEFT

static final char K_LEFT
See Also:
Constant Field Values

K_RIGHT

static final char K_RIGHT
See Also:
Constant Field Values

K_TAB

static final char K_TAB
See Also:
Constant Field Values

K_HOME

static final char K_HOME
See Also:
Constant Field Values

K_END

static final char K_END
See Also:
Constant Field Values

K_S_UP

static final char K_S_UP
See Also:
Constant Field Values

K_S_DOWN

static final char K_S_DOWN
See Also:
Constant Field Values

K_S_LEFT

static final char K_S_LEFT
See Also:
Constant Field Values

K_S_RIGHT

static final char K_S_RIGHT
See Also:
Constant Field Values

K_S_TAB

static final char K_S_TAB
See Also:
Constant Field Values

K_S_HOME

static final char K_S_HOME
See Also:
Constant Field Values

K_S_END

static final char K_S_END
See Also:
Constant Field Values

K_F1

static final char K_F1
See Also:
Constant Field Values

K_F2

static final char K_F2
See Also:
Constant Field Values

K_F3

static final char K_F3
See Also:
Constant Field Values

K_F4

static final char K_F4
See Also:
Constant Field Values

K_F5

static final char K_F5
See Also:
Constant Field Values

K_F6

static final char K_F6
See Also:
Constant Field Values

K_F7

static final char K_F7
See Also:
Constant Field Values

K_F8

static final char K_F8
See Also:
Constant Field Values

K_F9

static final char K_F9
See Also:
Constant Field Values

K_F10

static final char K_F10
See Also:
Constant Field Values

K_F11

static final char K_F11
See Also:
Constant Field Values

K_F12

static final char K_F12
See Also:
Constant Field Values

K_F13

static final char K_F13
See Also:
Constant Field Values

K_F14

static final char K_F14
See Also:
Constant Field Values

K_F15

static final char K_F15
See Also:
Constant Field Values

K_F16

static final char K_F16
See Also:
Constant Field Values

K_F17

static final char K_F17
See Also:
Constant Field Values

K_F18

static final char K_F18
See Also:
Constant Field Values

K_F19

static final char K_F19
See Also:
Constant Field Values

K_F20

static final char K_F20
See Also:
Constant Field Values

K_F21

static final char K_F21
See Also:
Constant Field Values

K_F22

static final char K_F22
See Also:
Constant Field Values

K_F23

static final char K_F23
See Also:
Constant Field Values

K_F24

static final char K_F24
See Also:
Constant Field Values

K_HELP

static final char K_HELP
See Also:
Constant Field Values

K_UNDO

static final char K_UNDO
See Also:
Constant Field Values

K_BS

static final char K_BS
See Also:
Constant Field Values

K_INS

static final char K_INS
See Also:
Constant Field Values

K_DEL

static final char K_DEL
See Also:
Constant Field Values

K_PAGEUP

static final char K_PAGEUP
See Also:
Constant Field Values

K_PAGEDOWN

static final char K_PAGEDOWN
See Also:
Constant Field Values

K_KPLUS

static final char K_KPLUS
See Also:
Constant Field Values

K_KMINUS

static final char K_KMINUS
See Also:
Constant Field Values

K_KDIVIDE

static final char K_KDIVIDE
See Also:
Constant Field Values

K_KMULTIPLY

static final char K_KMULTIPLY
See Also:
Constant Field Values

K_KENTER

static final char K_KENTER
See Also:
Constant Field Values

K_X_PERIOD

static final char K_X_PERIOD
See Also:
Constant Field Values

K_X_COMMA

static final char K_X_COMMA
See Also:
Constant Field Values

K_X_SEARCH_FINISH

static final char K_X_SEARCH_FINISH
See Also:
Constant Field Values

K_X_INCR_SEARCH_DONE

static final char K_X_INCR_SEARCH_DONE
See Also:
Constant Field Values

K_X_SEARCH_CANCEL

static final char K_X_SEARCH_CANCEL
See Also:
Constant Field Values

K_X_IM_SHIFT_RIGHT

static final char K_X_IM_SHIFT_RIGHT
See Also:
Constant Field Values

K_X_IM_SHIFT_LEFT

static final char K_X_IM_SHIFT_LEFT
See Also:
Constant Field Values

K_X_IM_INS_REP

static final char K_X_IM_INS_REP
See Also:
Constant Field Values