Global hotkeys #114
Replies: 2 comments 4 replies
-
Maybe create a plugin using https://www.jsdelivr.com/package/npm/vue-shortkey -- @hhaensel what do you think? |
Beta Was this translation helpful? Give feedback.
-
@AbhimanyuAryan in my understanding, this is more about adding app/page level shortcuts. The @jochenkrattenmacher We should start with the architecture |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am trying to build a presentation framework with Stipple (i.e. an alternative to powerpoint).
I thus would like to listen for global keyboard events, most importantly such that I can switch between slides when arrow buttons are pressed
I was hoping that adding "@on("keyup.right", "current_slide_id++")" to the page element would do the trick, but it doesn't trigger*. How can I implement global hotkeys?
*FYI, in the example below it does actually trigger, but only at the same time as the @on which I added to the input element (which I added just to see what works). Thus, in the example below, pressing the right arrow button while the focus is on the input element causes a switch to slide 3 (because current_slide_id is incremented twice). Otherwise, pressing the right arrow does nothing.
Beta Was this translation helpful? Give feedback.
All reactions