Skip to content

Commit

Permalink
v4.16.1: fix unhandled keydown condition
Browse files Browse the repository at this point in the history
  • Loading branch information
fergusean committed Sep 4, 2024
1 parent 57208c5 commit 95593be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@signal24/vue-foundation",
"type": "module",
"version": "4.16.0",
"version": "4.16.1",
"description": "Common components, directives, and helpers for Vue 3 apps",
"module": "./dist/vue-foundation.es.js",
"exports": {
Expand Down
1 change: 1 addition & 0 deletions src/directives/hotkey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ function reset(el: HTMLButtonElement, binding: DirectiveBinding<string>) {
}

function handleKeydown(event: KeyboardEvent) {
if (typeof event.key !== 'string') return;
const hotkey = event.key.toLowerCase();
const elements = ElementsByHotkey.get(hotkey);
if (elements) {
Expand Down

0 comments on commit 95593be

Please sign in to comment.