emit mapped keys from input-component
This commit is contained in:
parent
c2a663a64d
commit
214a5103f3
6 changed files with 95 additions and 21 deletions
|
@ -9,8 +9,8 @@ export default class KeymapperComponent {
|
|||
update() {
|
||||
}
|
||||
|
||||
key(key, ctrl) {
|
||||
this.store.dispatch(inputActions.keyPress(key, ctrl));
|
||||
key(key) {
|
||||
this.store.dispatch(inputActions.keyPress(key));
|
||||
|
||||
let input = this.store.getState().input;
|
||||
let matched = Object.keys(input.keymaps).filter((keyStr) => {
|
||||
|
|
Reference in a new issue