v5: Renamed/missing "hotkey" in HotkeysEvent #1256
eithe
started this conversation in
Show and tell
Replies: 1 comment
-
This is getting back in this PR: #1258 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have the following code to match menu items in our system with a shortcut:
However, in the 5.x version, the callback's HotkeysEvent doesn't have a
hotkey
property anymore, and I didn't find anything in the release notes about this breaking change.The fix for me was to change the line to:
const matchingItem = applicableItems.find((item) => hotkeyEvent.keys?.includes(item.shortcut));
Beta Was this translation helpful? Give feedback.
All reactions