aboutsummaryrefslogtreecommitdiff
path: root/e2e
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-06-28 21:41:34 +0900
committerGitHub <noreply@github.com>2018-06-28 21:41:34 +0900
commitd0c23587f8ee8c1bca38f036ae8f71078d6ca937 (patch)
tree2c5cb4aea22de3de6360220a6291440c7ac18230 /e2e
parent6d0732eb80f2a2b2546e659662537bf4e40d7e5c (diff)
parent05faaced137eb3a48780806fded04fd76bd9a84e (diff)
Merge pull request #423 from ueokande/greenkeeper/eslint-5.0.1
Update eslint
Diffstat (limited to 'e2e')
-rw-r--r--e2e/ambassador/src/client/keys.js15
1 files changed, 6 insertions, 9 deletions
diff --git a/e2e/ambassador/src/client/keys.js b/e2e/ambassador/src/client/keys.js
index 37b9c0a..6b36c23 100644
--- a/e2e/ambassador/src/client/keys.js
+++ b/e2e/ambassador/src/client/keys.js
@@ -4,28 +4,25 @@ import * as ipc from './ipc';
const NEUTRAL_MODIFIERS = { shiftKey: false, altKey: false, ctrlKey: false };
const press = (tabId, key, modifiers = NEUTRAL_MODIFIERS) => {
- return ipc.send(Object.assign({}, modifiers, {
+ return ipc.send({ ...modifiers,
type: EVENT_KEYPRESS,
tabId,
- key,
- }));
+ key, });
};
const down = (tabId, key, modifiers = NEUTRAL_MODIFIERS) => {
- return ipc.send(Object.assign({}, modifiers, {
+ return ipc.send({ modifiers,
type: EVENT_KEYDOWN,
tabId,
- key,
- }));
+ key, });
};
const up = (tabId, key, modifiers = NEUTRAL_MODIFIERS) => {
- return ipc.send(Object.assign({}, modifiers, {
+ return ipc.send({ modifiers,
type: EVENT_KEYUP,
tabId,
- key,
- }));
+ key, });
};
export { press, down, up };