aboutsummaryrefslogtreecommitdiff
path: root/src/actions/input.js
blob: 07948a17d3454d70b6072bab420a339e5cf7e849 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import actions from '../actions';

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

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

export { keyPress, clearKeys };