save keymap in input store in content
This commit is contained in:
parent
892eb8a6a6
commit
355c0c6457
6 changed files with 19 additions and 24 deletions
|
@ -2,16 +2,13 @@ export default {
|
|||
// User input
|
||||
INPUT_KEY_PRESS: 'input.key,press',
|
||||
INPUT_CLEAR_KEYS: 'input.clear.keys',
|
||||
INPUT_SET_KEYMAPS: 'input.set,keymaps',
|
||||
INPUT_SET_KEYMAPS: 'input.set.keymaps',
|
||||
|
||||
// Completion
|
||||
COMPLETION_SET_ITEMS: 'completion.set.items',
|
||||
COMPLETION_SELECT_NEXT: 'completions.select.next',
|
||||
COMPLETION_SELECT_PREV: 'completions.select.prev',
|
||||
|
||||
// Settings
|
||||
SETTING_SET_SETTINGS: 'setting.set.settings',
|
||||
|
||||
// Follow
|
||||
FOLLOW_ENABLE: 'follow.enable',
|
||||
FOLLOW_DISABLE: 'follow.disable',
|
||||
|
|
|
@ -20,4 +20,11 @@ const clearKeys = () => {
|
|||
};
|
||||
};
|
||||
|
||||
export { keyPress, clearKeys };
|
||||
const setKeymaps = (keymaps) => {
|
||||
return {
|
||||
type: actions.INPUT_SET_KEYMAPS,
|
||||
keymaps,
|
||||
};
|
||||
};
|
||||
|
||||
export { keyPress, clearKeys, setKeymaps };
|
||||
|
|
Reference in a new issue