Skip to content

Can't copy or paste colour code #604

@thany

Description

@thany

Please check that this issue hasn't been reported before.

  • I searched previous Bug Reports and didn't find any similar reports.

Expected Behavior

Can copy the colour code in settings, when set to hex

Current behaviour

Hitting Ctrl+C on it does nothing. Pasting also doesn't work and always clears the input.

JavaScript console output

No response

Steps to reproduce

  1. Add a new calendar
  2. In the dialog, click the black colour pill
  3. Set it to HEX at the bottom
  4. Try copying the colour code - pasting it anywhere else reveals it doesn't copy anything.
  5. Try pasting a colour code from somewhere else - even pasting a well-formatted colour code just clears the input.

Also observe how typing a colour code works fine, so it's not like a readonly textbox or something.

Calendar information

Not applicable. Bug shows itself before (and after) the first calendar is created.

Which Operating Systems are you using?

  • macOS
  • Windows
  • Linux
  • Android
  • iOS

Obsidian Version

1.8.10

Full Calendar Plugin Version

0.10.7

Checks

  • I have tried it with all other plugins disabled and the error still occurs.

Possible solution

Usually you have to do something specific to disable copypaste. Probably the HEX input is limited to typing only specific characters, but copy/cut/paste are also a kind of "characters". Depends on the event used to catch them.

Also the rightclick menu is missing, where I'd expect the usual things - cut, copy, paste, select all. You know, the ones every textbox menu throughout the OS and every browser shows :)

Comments

Maybe this is an Obsidian bug, not sure if you're using a bog standard colour input, or something provided by Obsidian.

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