Merge pull request #423 from ueokande/greenkeeper/eslint-5.0.1

Update eslint
This commit is contained in:
Shin'ya Ueoka 2018-06-28 21:41:34 +09:00 committed by GitHub
commit d0c23587f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 490 additions and 158 deletions

View file

@ -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 };