James Edwards on Nostr: Does anyone know how to block key repeats when ENTER is used to fire `click` events ...
Does anyone know how to block key repeats when ENTER is used to fire `click` events on a `<button>`?
nb. the solution can't use `keydown` or `keyup` since it has to work with virtual cursor mode in JAWS.
#javascript #accessibility
Published at
2025-04-29 12:26:08 UTCEvent JSON
{
"id": "620fc29a46bd506364b10c5cef4f01a6b925e28aa46533c5bd3ba853ed6f7284",
"pubkey": "a106afdff3d504fd634fef8812fb0faa14fac4fa95a624d969f40b2ca6a0d209",
"created_at": 1745929568,
"kind": 1,
"tags": [
[
"t",
"javascript"
],
[
"proxy",
"https://mastodon.world/@siblingpastry/114421240180348599",
"web"
],
[
"t",
"accessibility"
],
[
"proxy",
"https://mastodon.world/users/siblingpastry/statuses/114421240180348599",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mastodon.world/users/siblingpastry/statuses/114421240180348599",
"pink.momostr"
],
[
"-"
]
],
"content": "Does anyone know how to block key repeats when ENTER is used to fire `click` events on a `\u003cbutton\u003e`?\n\nnb. the solution can't use `keydown` or `keyup` since it has to work with virtual cursor mode in JAWS.\n\n#javascript #accessibility",
"sig": "c81849deddcc8f28ee40e67f476f8dd8a3e1e25c1a121292d8302afc0b8eb59517b3643b62084cc643278b5a35aa003aca6b569fbdff5717ebe52457601c6a00"
}