diff options
Diffstat (limited to 'src/reducers')
-rw-r--r-- | src/reducers/console.js | 2 | ||||
-rw-r--r-- | src/reducers/input.js | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/reducers/console.js b/src/reducers/console.js index 27ccdc9..5c49c3b 100644 --- a/src/reducers/console.js +++ b/src/reducers/console.js @@ -12,7 +12,7 @@ export default function reducer(state = defaultState, action = {}) { switch (action.type) { case actions.CONSOLE_SHOW_COMMAND: return Object.assign({}, state, { - commandShown: true, + commandShown: true, commandText: action.text, errorShown: false, completions: [] diff --git a/src/reducers/input.js b/src/reducers/input.js index 25ff1a3..eb7ff24 100644 --- a/src/reducers/input.js +++ b/src/reducers/input.js @@ -8,10 +8,12 @@ export default function reducer(state = defaultState, action = {}) { switch (action.type) { case actions.INPUT_KEY_PRESS: return Object.assign({}, state, { - keys: state.keys.concat([{ - code: action.code, - ctrl: action.ctrl - }]) + keys: state.keys.concat([ + { + code: action.code, + ctrl: action.ctrl + } + ]) }); case actions.INPUT_CLEAR_KEYS: return Object.assign({}, state, { |