aboutsummaryrefslogblamecommitdiff
path: root/src/actions/input.js
blob: 07948a17d3454d70b6072bab420a339e5cf7e849 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                 
                                  



                                  
  
 
                         
                                  


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