diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-09-30 16:20:16 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-09-30 16:20:16 +0900 |
commit | 1145eb34784c1450b920f8e7d672934ef6a98d45 (patch) | |
tree | f076a7f2366af89177f2bbc45a6cf8866407f3d5 /src/reducers/input.js | |
parent | c2a5a41cb6bc7780db580e6325e25b6a81729851 (diff) | |
parent | c5efeda78cdf39e3eda1eabc5f89b601b1fcdb6e (diff) |
Merge branch 'configurable-keymap'
Diffstat (limited to 'src/reducers/input.js')
-rw-r--r-- | src/reducers/input.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/reducers/input.js b/src/reducers/input.js index eb7ff24..dca26e2 100644 --- a/src/reducers/input.js +++ b/src/reducers/input.js @@ -2,6 +2,7 @@ import actions from '../actions'; const defaultState = { keys: [], + keymaps: {} }; export default function reducer(state = defaultState, action = {}) { @@ -19,6 +20,11 @@ export default function reducer(state = defaultState, action = {}) { return Object.assign({}, state, { keys: [], }); + case actions.INPUT_SET_KEYMAPS: + return Object.assign({}, state, { + keymaps: action.keymaps, + keys: [], + }); default: return state; } |