aboutsummaryrefslogtreecommitdiff
path: root/src/content/actions
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-10-21 11:06:58 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-10-21 12:47:44 +0900
commit214a5103f3e2914028206a13ba115c69a7ee07f1 (patch)
treef396f94064ae1626ae134e1932316fa11641c7c0 /src/content/actions
parentc2a663a64d23816821d333c0d1c7c7c968f494b0 (diff)
emit mapped keys from input-component
Diffstat (limited to 'src/content/actions')
-rw-r--r--src/content/actions/input.js11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/content/actions/input.js b/src/content/actions/input.js
index 10ff835..31cfee3 100644
--- a/src/content/actions/input.js
+++ b/src/content/actions/input.js
@@ -1,16 +1,9 @@
import actions from 'content/actions';
-const asKeymapChars = (key, ctrl) => {
- if (ctrl) {
- return '<C-' + key.toUpperCase() + '>';
- }
- return key;
-};
-
-const keyPress = (key, ctrl) => {
+const keyPress = (key) => {
return {
type: actions.INPUT_KEY_PRESS,
- key: asKeymapChars(key, ctrl),
+ key,
};
};