[wip] content

This commit is contained in:
Shin'ya Ueoka 2018-07-07 16:58:09 +09:00
parent 85b4bd5b07
commit 327144a3aa
6 changed files with 86 additions and 58 deletions

View file

@ -20,6 +20,7 @@ export default class KeymapperComponent {
this.store = store;
}
// eslint-disable-next-line max-statements
key(key) {
this.store.dispatch(inputActions.keyPress(key));
@ -47,8 +48,8 @@ export default class KeymapperComponent {
return true;
}
let operation = keymaps.get(matched[0]);
this.store.dispatch(operationActions.exec(
operation, key.repeat, state.setting));
let act = operationActions.exec(operation, key.repeat, state.setting);
this.store.dispatch(act);
this.store.dispatch(inputActions.clearKeys());
return true;
}