From 39fb5400370b818760dc7bcfe42e74b2512a840d Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 8 Oct 2017 15:04:55 +0900 Subject: separate content --- src/actions/input.js | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 src/actions/input.js (limited to 'src/actions/input.js') diff --git a/src/actions/input.js b/src/actions/input.js deleted file mode 100644 index 61acb76..0000000 --- a/src/actions/input.js +++ /dev/null @@ -1,23 +0,0 @@ -import actions from 'actions'; - -const asKeymapChars = (key, ctrl) => { - if (ctrl) { - return ''; - } - return key; -}; - -const keyPress = (key, ctrl) => { - return { - type: actions.INPUT_KEY_PRESS, - key: asKeymapChars(key, ctrl), - }; -}; - -const clearKeys = () => { - return { - type: actions.INPUT_CLEAR_KEYS - }; -}; - -export { keyPress, clearKeys }; -- cgit v1.2.3