aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/components/keyboard-layout.vue
diff options
context:
space:
mode:
authorNick Coutsos <[email protected]>2021-08-15 15:22:11 -0400
committerNick Coutsos <[email protected]>2021-08-15 15:22:11 -0400
commit1b48a52a4ea35cfb29c52659cf846a9a878dc881 (patch)
tree04d30ecc013c59aa06e73cc8cac9a3cf7c30e167 /application/components/keyboard-layout.vue
parent8356b514b39157e10146c35366d1246d6c6a8a2e (diff)
downloadkeymap-editor-1b48a52a4ea35cfb29c52659cf846a9a878dc881.tar.gz
keymap-editor-1b48a52a4ea35cfb29c52659cf846a9a878dc881.zip
Parse bindings at app level and pass down with layer and key index metadata
Diffstat (limited to 'application/components/keyboard-layout.vue')
-rw-r--r--application/components/keyboard-layout.vue8
1 files changed, 3 insertions, 5 deletions
diff --git a/application/components/keyboard-layout.vue b/application/components/keyboard-layout.vue
index e6407d2..68f345f 100644
--- a/application/components/keyboard-layout.vue
+++ b/application/components/keyboard-layout.vue
@@ -8,8 +8,9 @@
:rotation="rotation(key)"
:size="size(key)"
:label="key.label"
- :code="keys[i]"
- @select-key="handleSelectKey(key, i, $event)"
+ :mapping="keys[i]"
+ :parsed="keys[i].parsed"
+ @select-key="onSelectKey"
>
</key-thing>
</div>
@@ -35,9 +36,6 @@ export default {
size(key) {
const { u, h } = key
return { u, h }
- },
- handleSelectKey(key, index, { target, param, code }) {
- this.onSelectKey({ key, index, target, param, code })
}
}
}