Skip to content

Use of typing animation causes later glitch in keyboard input on mobile #753

Open
@psx18

Description

@psx18

Issue summary

I'm able to reproduce the bug on one of the official typing animation examples: https://codepen.io/jcubic/pen/QWvobpa
Once the animation has ended and the terminal is waiting for input: As I type a command, my input will sporadically be 'submitted' to the terminal as if I had hit 'enter', even though I haven't

(Sidenote: on mobile, keyboard input is also not disabled during animation by setting keydown to false)

Expected behavior

typed command should be submitted to terminal only when "enter" has been pressed

Actual behavior

as you type your command, submission will sometimes be triggered without 'enter' having been pressed

Steps to reproduce

  1. In Chrome on Android, go to https://codepen.io/jcubic/pen/QWvobpa
  2. Wait for the animation to end and the terminal to start accepting input
  3. Start typing at random. Use of 'space' of 'backspace' may increase chances of random submission, I'm not sure

Browser and OS

Chrome on Android phone

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions