aboutsummaryrefslogtreecommitdiff
path: root/src/content/reducers/input.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/reducers/input.js')
-rw-r--r--src/content/reducers/input.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/content/reducers/input.js b/src/content/reducers/input.js
deleted file mode 100644
index 23e7dd2..0000000
--- a/src/content/reducers/input.js
+++ /dev/null
@@ -1,18 +0,0 @@
-import actions from 'content/actions';
-
-const defaultState = {
- keys: []
-};
-
-export default function reducer(state = defaultState, action = {}) {
- switch (action.type) {
- case actions.INPUT_KEY_PRESS:
- return { ...state,
- keys: state.keys.concat([action.key]), };
- case actions.INPUT_CLEAR_KEYS:
- return { ...state,
- keys: [], };
- default:
- return state;
- }
-}