aboutsummaryrefslogtreecommitdiff
path: root/src/actions/input.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/input.js')
-rw-r--r--src/actions/input.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/actions/input.js b/src/actions/input.js
index 07948a1..de6de4e 100644
--- a/src/actions/input.js
+++ b/src/actions/input.js
@@ -14,4 +14,11 @@ const clearKeys = () => {
};
};
-export { keyPress, clearKeys };
+const setKeymaps = (keymaps) => {
+ return {
+ type: actions.INPUT_SET_KEYMAPS,
+ keymaps: keymaps
+ };
+};
+
+export { keyPress, clearKeys, setKeymaps };