aboutsummaryrefslogtreecommitdiff
path: root/src/actions/input.js
blob: de6de4e55f9bc6bdd0669ec08c6d523102dfba4e (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
24
import actions from '../actions';

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

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

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

export { keyPress, clearKeys, setKeymaps };