Refactor & Usability improvements

This commit is contained in:
syuilo
2018-09-18 12:42:56 +09:00
parent 6ed3f9e414
commit 71a93b2b43
3 changed files with 20 additions and 17 deletions

View File

@@ -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(' ');