Refactor & Usability improvements
This commit is contained in:
parent
6ed3f9e414
commit
71a93b2b43
3 changed files with 20 additions and 17 deletions
|
|
@ -51,7 +51,8 @@ export default {
|
|||
|
||||
const actions = getKeyMap(binding.value);
|
||||
|
||||
const reservedKeys = concat(actions.map(a => a.patterns.map(p => p.which)));
|
||||
// flatten
|
||||
const reservedKeys = concat(concat(actions.map(a => a.patterns.map(p => p.which))));
|
||||
|
||||
el.dataset.reservedKeys = reservedKeys.map(key => `'${key}'`).join(' ');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue