aboutsummaryrefslogtreecommitdiff
path: root/src/content/actions/input.js
blob: 31cfee3ab7f9aec6c449b563b316969294a9cbd3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import actions from 'content/actions';

const keyPress = (key) => {
  return {
    type: actions.INPUT_KEY_PRESS,
    key,
  };
};

const clearKeys = () => {
  return {
    type: actions.INPUT_CLEAR_KEYS
  };
};

const setKeymaps = (keymaps) => {
  return {
    type: actions.INPUT_SET_KEYMAPS,
    keymaps,
  };
};

export { keyPress, clearKeys, setKeymaps };