Skip to content

Commit

Permalink
fix: #235
Browse files Browse the repository at this point in the history
  • Loading branch information
windingwind committed Jan 16, 2024
1 parent 56a1571 commit 0c353b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"homepage": "https://github.com/windingwind/zotero-actions-tags#readme",
"dependencies": {
"js-yaml": "^4.1.0",
"zotero-plugin-toolkit": "^2.3.15"
"zotero-plugin-toolkit": "^2.3.19"
},
"devDependencies": {
"@types/js-yaml": "^4.0.9",
Expand Down
3 changes: 2 additions & 1 deletion src/modules/shortcuts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ export { initShortcuts };

function initShortcuts() {
ztoolkit.Keyboard.register(async (ev, options) => {
ztoolkit.log(options.keyboard.getLocalized());
ztoolkit.log(options.keyboard?.getLocalized());
if (!options.keyboard) return;

const items = await getCurrentItems();
// Trigger action for multiple items
Expand Down

0 comments on commit 0c353b8

Please sign in to comment.