#1999·vue-flow

[BUG]: Space keydown events on text input elements swallowed by zoom and pan shortcut

Author: konstantintieberCreated Dec 12, 2025Updated Jan 8, 2026
Labelsbugtriage

Is there an existing issue for this?

  • I have searched the existing issues and this is a new bug.

Current Behavior

The following conditions need to be met for this bug to occur:

  • vue-flow instance on the page
  • shift key is pressed
  • editing text input field anywhere on the page

The bug: While the shift key is pressed, no space characters can be added on any input on the page. The "input" event is never fired for the "space" keydown in this case

Expected Behavior

Pressing space while the shift key is active and I'm focusing an input element should add a space to the value of the input element.

Steps To Reproduce

  1. Visit this stackblitz: https://stackblitz.com/edit/sb1-s53hkgaz
  2. Focus on the input above the vue-flow canvas
  3. Hold shift
  4. Try to add space characters in the input

Minimal reproduction of the issue with CodeSandbox

https://stackblitz.com/edit/sb1-s53hkgaz

Potential fixes

Two potential fixes we've found: Inside vue-flow:

On the outside input element:

  • Add @keydown.stop on the input element, so that vue-flow never gets to see it

Issue co-authored by @MiloradFilipovic