Merge pull request #423 from ueokande/greenkeeper/eslint-5.0.1
Update eslint
This commit is contained in:
commit
d0c23587f8
24 changed files with 490 additions and 158 deletions
|
@ -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 };
|
||||
|
|
Reference in a new issue