aboutsummaryrefslogtreecommitdiff
path: root/src/reducers/input.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-09-17 09:00:41 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-09-17 09:00:41 +0900
commitcd4708898134f5966f87df4aeaa8ed8c60e7943f (patch)
treedb082d9cb2ec426010556dbc24ab439c9757afbd /src/reducers/input.js
parentc5529958d53146c8c6826673abe6431a19f1924d (diff)
parent9ae814dfe45426f8df9b89b305392770344a7d50 (diff)
Merge branch 'lint'
Diffstat (limited to 'src/reducers/input.js')
-rw-r--r--src/reducers/input.js10
1 files changed, 6 insertions, 4 deletions
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, {