aboutsummaryrefslogtreecommitdiff
path: root/src/content/actions
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-05-18 21:43:56 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2019-05-18 21:43:56 +0900
commita5518dce3d101cb1cb65724b82079f66f20c80c8 (patch)
tree79537b86e4a7bf231e8801c9c6bf2aeb94450343 /src/content/actions
parent2ec912c262b51fe9523ebf74d5062d0b9bbdab71 (diff)
Define Key and KeySequence
Diffstat (limited to 'src/content/actions')
-rw-r--r--src/content/actions/index.ts4
-rw-r--r--src/content/actions/input.ts4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/content/actions/index.ts b/src/content/actions/index.ts
index eb826fc..49f6484 100644
--- a/src/content/actions/index.ts
+++ b/src/content/actions/index.ts
@@ -1,5 +1,5 @@
import Redux from 'redux';
-import * as keyUtils from '../../shared/utils/keys';
+import Key from '../domains/Key';
// User input
export const INPUT_KEY_PRESS = 'input.key.press';
@@ -25,7 +25,7 @@ export const NOOP = 'noop';
export interface InputKeyPressAction extends Redux.Action {
type: typeof INPUT_KEY_PRESS;
- key: keyUtils.Key;
+ key: Key;
}
export interface InputClearKeysAction extends Redux.Action {
diff --git a/src/content/actions/input.ts b/src/content/actions/input.ts
index 1df6452..24dbb99 100644
--- a/src/content/actions/input.ts
+++ b/src/content/actions/input.ts
@@ -1,7 +1,7 @@
import * as actions from './index';
-import * as keyUtils from '../../shared/utils/keys';
+import Key from '../domains/Key';
-const keyPress = (key: keyUtils.Key): actions.InputAction => {
+const keyPress = (key: Key): actions.InputAction => {
return {
type: actions.INPUT_KEY_PRESS,
key,