aboutsummaryrefslogtreecommitdiff
path: root/src/reducers
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-10-08 10:54:56 +0900
committerGitHub <noreply@github.com>2017-10-08 10:54:56 +0900
commit0f54a203dba38acdd080a928cee95f875fe84706 (patch)
tree64ca61c590f16fb3af5d304e92872fa375b37532 /src/reducers
parentd995ab0030522f380d165f309ffc72b582366ddb (diff)
parent38fee747603d37a99f1a8d156f41ea3d7c400b78 (diff)
Merge pull request #20 from ueokande/prevent-page-keymaps
Prevent page keymaps
Diffstat (limited to 'src/reducers')
-rw-r--r--src/reducers/follow.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/reducers/follow.js b/src/reducers/follow.js
index a2397b4..ed875e8 100644
--- a/src/reducers/follow.js
+++ b/src/reducers/follow.js
@@ -3,7 +3,7 @@ import actions from 'actions';
const defaultState = {
enabled: false,
newTab: false,
- keys: [],
+ keys: '',
};
export default function reducer(state = defaultState, action = {}) {
@@ -12,6 +12,7 @@ export default function reducer(state = defaultState, action = {}) {
return Object.assign({}, state, {
enabled: true,
newTab: action.newTab,
+ keys: '',
});
case actions.FOLLOW_DISABLE:
return Object.assign({}, state, {
@@ -19,7 +20,7 @@ export default function reducer(state = defaultState, action = {}) {
});
case actions.FOLLOW_KEY_PRESS:
return Object.assign({}, state, {
- keys: state.keys.concat([action.key]),
+ keys: state.keys + action.key,
});
case actions.FOLLOW_BACKSPACE:
return Object.assign({}, state, {