| java.lang.Object gnu.kawa.util.RangeTable gnu.jemacs.buffer.EKeymap
Method Summary | |
public static int | asKeyStroke(char ch, int mods) | public static int | asKeyStroke(Object key) | public void | defineKey(Object keySpec, Object binding) | public void | defineKey(int key, Object binding) | public EKeymap | definePrefix(int key) Get or create keymap associate with a prefix key in a given keymap. | public Object | get(int key, int modifiers, boolean acceptDefaults) | protected Object | get(int key, boolean acceptDefaults) | final public Object | getDefaultBinding() | public static int | getKeyForName(String name) Map an Emacs key name to one of the KeyEVent VK_XXX codes. | public static int | getModifiers(int code) | public String | getName() | public EKeymap | getParent() | public EKeymap[] | getParents() | public Object | getSymbol() | public static boolean | ignorable(int key) True for a KeyStroke if the default action should be to ignore it.
For example, pressing a shift key should not be an action!
We also have the complication that both KEY-PRESSED and KEY_TYPED
events and we typically want to ignore one but not both.
(If both are handled, we have problems with default actions, as
well as when to abort a prefix sequence. | public Object | lookupKey(Sequence keys, boolean acceptDefaults) | public Object | lookupKey(int[] prefixKeys, int nPrefix, int key, boolean acceptDefaults) | public void | setAction(int key, Object command) | public void | setDefaultBinding(Object value) | public void | setName(String name) | public void | setParent(EKeymap parent) | public void | setParents(EKeymap[] parents) | public static String | show(int binary) | public static int | stripMeta(int key) | public String | toString() | public static String | toString(int code) |
ALT_MASK | final public static int ALT_MASK(Code) | | |
CTRL_MASK | final public static int CTRL_MASK(Code) | | |
META_MASK | final public static int META_MASK(Code) | | |
PRESSED | public static int PRESSED(Code) | | |
RELEASED | public static int RELEASED(Code) | | |
SHIFT_MASK | final public static int SHIFT_MASK(Code) | | |
globalKeymap | public static EKeymap globalKeymap(Code) | | The Emacs global map.
|
metaKey | final public static int metaKey(Code) | | The magic key that indicates a (Emacs) meta prefix.
I.e. we saw either an Escape or a meta modifier.
|
metaKeymap | public static EKeymap metaKeymap(Code) | | The Emacs global escape (meta) map.
|
asKeyStroke | public static int asKeyStroke(char ch, int mods)(Code) | | |
defineKey | public void defineKey(int key, Object binding)(Code) | | |
definePrefix | public EKeymap definePrefix(int key)(Code) | | Get or create keymap associate with a prefix key in a given keymap.
|
get | public Object get(int key, int modifiers, boolean acceptDefaults)(Code) | | |
get | protected Object get(int key, boolean acceptDefaults)(Code) | | |
getDefaultBinding | final public Object getDefaultBinding()(Code) | | |
getKeyForName | public static int getKeyForName(String name)(Code) | | Map an Emacs key name to one of the KeyEVent VK_XXX codes.
Returns VK_UNDEFINED if the name isn't recognized.
|
getModifiers | public static int getModifiers(int code)(Code) | | |
ignorable | public static boolean ignorable(int key)(Code) | | True for a KeyStroke if the default action should be to ignore it.
For example, pressing a shift key should not be an action!
We also have the complication that both KEY-PRESSED and KEY_TYPED
events and we typically want to ignore one but not both.
(If both are handled, we have problems with default actions, as
well as when to abort a prefix sequence. Swing does not have
this problem because it does not have prefix sequences and hence state.)
|
lookupKey | public Object lookupKey(int[] prefixKeys, int nPrefix, int key, boolean acceptDefaults)(Code) | | |
setAction | public void setAction(int key, Object command)(Code) | | |
setDefaultBinding | public void setDefaultBinding(Object value)(Code) | | |
stripMeta | public static int stripMeta(int key)(Code) | | |
|
|