keyboard-types icon indicating copy to clipboard operation
keyboard-types copied to clipboard

Use `#[doc(alias = "...")]`

Open madsmtm opened this issue 10 months ago • 1 comments

We should use #[doc(alias = "...")] on Code/Key variants, to make things easier to search for.

Examples of where this would be helpful:

  • https://github.com/pyfisch/keyboard-types/pull/61
  • Enter (alias Return)
  • Backspace (alias Delete)
  • Meta (alias Cmd/Command, Win/Windows and maybe Super)

madsmtm avatar Feb 24 '25 00:02 madsmtm

Backspace (alias Delete)

Since there is an actual key called "Delete" this would be confusing. We shouldn't make the same mistake as Apple here.

pyfisch avatar Mar 09 '25 11:03 pyfisch