Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Explicitly check for modifier keydown events before focusing composer #3328

Merged
merged 1 commit into from
Aug 21, 2019

Conversation

bwindels
Copy link
Contributor

@bwindels bwindels commented Aug 20, 2019

See element-hq/element-web#10390 (comment) for context:

Hmm, I indeed see (Linux, Gnome & Wayland) a keyboard event for just pressing Control on Chromium but not Firefox. If they ctrlKey flag isn't set on this event, it would explain things, but for me this flag is set. I'm adding some extra checks to not refocus when just pressing a modifier key, regardless of the state of the modifier flags. Let's see if that helps.

This is an attempt to fix that issue. See https://www.w3.org/TR/uievents-key/#keys-modifier for key constants.

@bwindels bwindels changed the title explicitly check for modifier keydown events Explicitly check for modifier keydown events before focusing composer Aug 20, 2019
@bwindels bwindels requested a review from a team August 20, 2019 16:07
@bwindels bwindels merged commit c7c87cc into develop Aug 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants