Skip to content

Clipboard input in many devices is not detected as paste #7374

@Aaryan-Dadu

Description

@Aaryan-Dadu

Did you clear cache before opening an issue?

  • I have cleared my cache

Is there an existing issue for this?

  • I have searched the existing open and closed issues

Does the issue happen when logged in?

Yes

Does the issue happen when logged out?

Yes

Does the issue happen in incognito mode when logged in?

Yes

Does the issue happen in incognito mode when logged out?

Yes

Account name

aaryandadu

Account config

No response

Current Behavior

when using monkeytype on many devices text inserted via the clipboard is not detected as a paste action thus leading to absurd results. This most probably caused because clipboard based input method does not trigger OS level paste event that the event listeners listens for.

Monkeytype.mp4

Expected Behavior

This type of paste by the clipboard should be disabled. I looked into the possible solutions we can move towards but I think that the better approach would be to detect max 1 character per keystroke, multiple characters in one key stroke could be blocked.

Steps To Reproduce

  1. Use Gboard in any device or built-in clipboard by One UI.
  2. Copy the text from the preview in monkeytype in any mode
  3. Paste the copied text using the clipboard
Monkeytype-2.mp4

Environment

  • OS:
  • Browser:
  • Browser Version:

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions