aboutsummaryrefslogtreecommitdiff
path: root/src/reducers/input.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/reducers/input.js')
-rw-r--r--src/reducers/input.js6
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;
}