Skip to content
V

vue-global-events

A component to handle global events (like shortcuts) using Vue’s event modifiers

by shentaoOpen source

#1278in UI Libraries
0In stores

Description

vue-global-events is a Vue 3 component that registers global event listeners, such as keyboard shortcuts, the way you would listen to events…

Highlights

  • Global keyboard shortcuts as a component
  • Target document or window
  • Filter function to skip events
  • Removed automatically with v-if
  • Works with server-side rendering

Ratings & Reviews

No ratings yet

Be the first to rate vue-global-events.

People also visit

V

vue-slider-component

A highly customized slider component

UI Libraries
Launch
V

@vuepic/vue-datepicker

Datepicker component for Vue 3

UI Libraries
Launch
V

vue3-apexcharts

<p align="center"><img

UI Libraries
Launch
K

@kyvg/vue3-notification

Vue 3 notification library

UI Libraries
Launch
V

vue-draggable-resizable

Vue2 component for draggable and resizable elements

UI Libraries
Launch
V

Vue DnD Kit

A lightweight, performant drag and drop toolkit for Vue 3

UI Libraries
Launch

vue-global-events FAQ

What is vue-global-events?

A Vue 3 component for listening to events on the document or window, such as keyboard shortcuts.

Does it support Vue 2?

The main branch is for Vue 3. The README points to the v1 branch for Vue 2.

How do I stop a handler from running?

Pass a filter function that returns false for the events you want to ignore.

Does it work with server-side rendering?

Yes, the README says it works with SSR.

Can I turn the listeners on and off?

Yes. Toggle the component with a single v-if.

What are the best vue-global-events alternatives?

Popular alternatives to vue-global-events include vue-slider-component, @vuepic/vue-datepicker and vue3-apexcharts. See all vue-global-events alternatives

Developer Stuff

Badges