diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-04-06 21:48:16 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-04-06 22:39:40 +0900 |
commit | b04eecce7fea8b262411a5817924dc730cbe127a (patch) | |
tree | 024c14ce52319af899938ce81ee7107540ccbf7b /e2e/ambassador/src/client/keys.js | |
parent | c9a0bf87d0ba81beb1b958c374a40c4b69f4192b (diff) |
Replace e2e with lanthan
Diffstat (limited to 'e2e/ambassador/src/client/keys.js')
-rw-r--r-- | e2e/ambassador/src/client/keys.js | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/e2e/ambassador/src/client/keys.js b/e2e/ambassador/src/client/keys.js deleted file mode 100644 index 6b36c23..0000000 --- a/e2e/ambassador/src/client/keys.js +++ /dev/null @@ -1,28 +0,0 @@ -import { EVENT_KEYPRESS, EVENT_KEYDOWN, EVENT_KEYUP } from '../shared/messages'; -import * as ipc from './ipc'; - -const NEUTRAL_MODIFIERS = { shiftKey: false, altKey: false, ctrlKey: false }; - -const press = (tabId, key, modifiers = NEUTRAL_MODIFIERS) => { - return ipc.send({ ...modifiers, - type: EVENT_KEYPRESS, - tabId, - key, }); -}; - -const down = (tabId, key, modifiers = NEUTRAL_MODIFIERS) => { - return ipc.send({ modifiers, - type: EVENT_KEYDOWN, - tabId, - key, }); -}; - - -const up = (tabId, key, modifiers = NEUTRAL_MODIFIERS) => { - return ipc.send({ modifiers, - type: EVENT_KEYUP, - tabId, - key, }); -}; - -export { press, down, up }; |