diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-05 16:16:24 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-05 16:16:24 +0200 |
| commit | b0d534d174def2940287745535726c7e878dcbcc (patch) | |
| tree | 499f8980f2e29bd36833bb943eacd01e9815759e /app/client/system | |
| parent | e243e4f65cc2c98724a1cfb4d28ac5f1d1bc0a79 (diff) | |
more sane file naming
Diffstat (limited to 'app/client/system')
| -rw-r--r-- | app/client/system/system.actions.js | 30 | ||||
| -rw-r--r-- | app/client/system/system.reducer.js | 2 |
2 files changed, 31 insertions, 1 deletions
diff --git a/app/client/system/system.actions.js b/app/client/system/system.actions.js index 8758715..7831704 100644 --- a/app/client/system/system.actions.js +++ b/app/client/system/system.actions.js @@ -37,3 +37,33 @@ export const enqueue_test_task = (dataset) => dispatch => { } return actions.queue.add_task(task) } + +window.addEventListener('keyDown', e => { + if (e.altKey) { + switch (e.keyCode) { + case 192: // tilde - switch tool + break + case 49: // 1 + break + case 50: // 2 + break + case 51: // 3 + break + case 52: // 4 + break + case 53: // 5 + break + case 54: // 6 + break + case 55: // 7 + break + case 56: // 8 + break + case 57: // 9 + break + case 48: // 0 + break + } + } +}) + diff --git a/app/client/system/system.reducer.js b/app/client/system/system.reducer.js index 961db74..5067acd 100644 --- a/app/client/system/system.reducer.js +++ b/app/client/system/system.reducer.js @@ -179,7 +179,7 @@ const systemReducer = (state = systemInitialState, action) => { if (action.task === 'cpu' || (state.runner.cpu.task && action.task && state.runner.cpu.task.uuid === action.task.uuid)) { processor = 'cpu' } - else if (action.task === 'gpu' || (state.runner.cpu.task && action.task && state.runner.gpu.task.uuid === action.task.uuid)) { + else if (action.task === 'gpu' || (state.runner.gpu.task && action.task && state.runner.gpu.task.uuid === action.task.uuid)) { processor = 'gpu' } else { processor = null |
