From 05faaced137eb3a48780806fded04fd76bd9a84e Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Thu, 28 Jun 2018 21:26:48 +0900 Subject: [PATCH] fix for lint --- e2e/ambassador/src/client/keys.js | 15 ++++++--------- 1 file 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 };