aboutsummaryrefslogtreecommitdiff
path: root/src/content/actions/input.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-10-09 14:30:58 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-10-09 14:30:58 +0900
commit355c0c64575adad4886647a1df3da173598b558b (patch)
tree0a2570a23736f2a818176ea73452b0547df60e6d /src/content/actions/input.js
parent892eb8a6a6d9080213f461f19a8b8435a6482237 (diff)
save keymap in input store in content
Diffstat (limited to 'src/content/actions/input.js')
-rw-r--r--src/content/actions/input.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/content/actions/input.js b/src/content/actions/input.js
index cc4efac..10ff835 100644
--- a/src/content/actions/input.js
+++ b/src/content/actions/input.js
@@ -20,4 +20,11 @@ const clearKeys = () => {
};
};
-export { keyPress, clearKeys };
+const setKeymaps = (keymaps) => {
+ return {
+ type: actions.INPUT_SET_KEYMAPS,
+ keymaps,
+ };
+};
+
+export { keyPress, clearKeys, setKeymaps };