yuanqing / create-figma-plugin

:battery: The comprehensive toolkit for developing plugins and widgets for Figma and FigJam
https://yuanqing.github.io/create-figma-plugin/
MIT License
935 stars 89 forks source link

Pressing up/down arrow keys in a dropdown menu shouldn't scroll the page #194

Closed fwextensions closed 11 months ago

fwextensions commented 1 year ago

When the dropdown menu is open, pressing up/down arrow keys should move the selection, but shouldn't cause the page to scroll. I think the handleScrollableMenuKeyDown() function just needs to call preventDefault() to swallow the key events.