Skip to content

Commit a50a2e2

Browse files
authored
Merge pull request #40 from Ficik/feature/emit-custom-event
support for custom function keys
2 parents 8f37ccc + 9cb5335 commit a50a2e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/keyboard.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,10 @@
232232
return;
233233
}
234234
235+
default: {
236+
this.$emit(key.func);
237+
}
238+
235239
}
236240
} else {
237241
addChar = key.key;

0 commit comments

Comments
 (0)