Skip to main content
Answered

Is it possible to determine if Shift is pressed when my app icon is clicked?

  • May 9, 2025
  • 3 replies
  • 72 views

Forum|alt.badge.img+1

The handler function doesn’t receive an event object, as far as I understand. I’d love to keep my settings in a panel but show them only on a click+shift, and just execute an action on a simple clicl on an icon.

At the moment it seems impossible.

Best answer by William Bishop

Hey ​@kpstn,

While it’s a great suggestion, I’m afraid there’s not a key press event that’s support by our developer platform. That said, it’s a great suggestion and happy to share this feedback internally.

In certain cases, you may find the Web SDK’s event listener for `selection:update` to be a workaround, but I’m not sure how relevant it would be to this use case unfortunately.

3 replies

William Bishop
Mironeer
Forum|alt.badge.img+4
  • Mironeer
  • 248 replies
  • Answer
  • May 9, 2025

Hey ​@kpstn,

While it’s a great suggestion, I’m afraid there’s not a key press event that’s support by our developer platform. That said, it’s a great suggestion and happy to share this feedback internally.

In certain cases, you may find the Web SDK’s event listener for `selection:update` to be a workaround, but I’m not sure how relevant it would be to this use case unfortunately.


Forum|alt.badge.img+1
  • Author
  • Beginner
  • 2 replies
  • May 9, 2025

Well, not sure how `selection:update` could help, but I’ll check it out. Just passing the original event object to handlers would solve this problem easier, I guess. 


Robert Johnson
Forum|alt.badge.img+13
  • Volunteer Community Moderator
  • 7732 replies
  • May 10, 2025

@kpstn - If you weren’t planning on submitting your app to the Marketplace, you could explore using custom actions when you do not need the app panel: https://developers.miro.com/docs/add-custom-actions-to-your-app

However, I believe this would require that you have two separate apps - one for the creation bar and another for the custom actions.