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

don't focus_composer on window focus #944

Merged
merged 3 commits into from
May 27, 2017
Merged

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented May 27, 2017

at the very least this means that if you click off the browser then onto a text input in riot it won't send you to composer instead. Though returning to the window clicking on a Modal (for e.g, not its input) would send focus to composer anyway so maybe scrapping the whole window onFocus would be the right thing to do?

for element-hq/element-web#1730

but with this at least clicking on a text input will not make you
be thrown into composer instead

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
@matrixbot
Copy link
Member

Can one of the admins verify this patch?

@ara4n
Copy link
Member

ara4n commented May 27, 2017

yeah, i didn't even realise we autofocused the composer on window focus. Surely the browser will remember your focus on the page from before you switched away, which is normally going to be the composer anyway? I'm not sure what the autofocus buys us at all...

@t3chguy
Copy link
Member Author

t3chguy commented May 27, 2017

@ara4n you happy for me to just rip out the Window onFocus thing then?

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
@t3chguy t3chguy changed the title don't focus_composer on window focus if the current focus is a text input don't focus_composer on window focus May 27, 2017
@ara4n
Copy link
Member

ara4n commented May 27, 2017

lgtm ,thanks

@ara4n ara4n merged commit 10a9313 into develop May 27, 2017
@t3chguy t3chguy deleted the t3chguy/fix-focus-steal branch October 29, 2017 17:26
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.

3 participants