[wip] content
This commit is contained in:
parent
85b4bd5b07
commit
327144a3aa
6 changed files with 86 additions and 58 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Reference in a new issue