Skip to content

Do not respond to right alt (Alt Gr) keyboard events.#7001

Merged
SamTV12345 merged 1 commit into
ether:developfrom
q3k:q3k/no-more-alt-right
Jun 28, 2025
Merged

Do not respond to right alt (Alt Gr) keyboard events.#7001
SamTV12345 merged 1 commit into
ether:developfrom
q3k:q3k/no-more-alt-right

Conversation

@q3k

@q3k q3k commented May 26, 2025

Copy link
Copy Markdown
Contributor

On some keyboard layouts (eg. pl) the right alt key (a.k.a. Alt Gr) is used in combination with letters to type special characters, eg. AltGr-C makes a 'ć' on a pl keyboard layout.

At least on Firefox on macOS it seems like events that would otherwise result in a special character still get passed to keydown and friends. This means that if etherpad handles alt-c, it might swallow someone's intent to type in 'ć' and instead open up the chat window.

This could arguably be a bug in Firefox or macOS, as the same doesn't happen in Firefox on Linux/X11. But before I bring the discussion to a wider audience I'd like to at least make the issue go away at etherpad level.

On some keyboard layouts (eg. pl) the right alt key (a.k.a. Alt Gr) is
used in combination with letters to type special characters, eg. AltGr-C
makes a 'ć' on a pl keyboard layout.

At least on Firefox on macOS it seems like events that would otherwise
result in a special character still get passed to keydown and friends.
This means that if etherpad handles alt-c, it might swallow someone's
intent to type in 'ć' and instead open up the chat window.

This could arguably be a bug in Firefox or macOS, as the same doesn't
happen in Firefox on Linux/X11. But before I bring the discussion to a
wider audience I'd like to at least make the issue go away at etherpad
level.
@SamTV12345 SamTV12345 merged commit 85096f7 into ether:develop Jun 28, 2025
18 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants