-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for "focus follows mouse" mode #8965
Conversation
Merhaba Hata kodu 0X80092012 Unknow Error .bunu nasıl çözemedim. |
@Gursu78 - Hata açıklaması içeren bir bilet açmanız gerekiyor. Rastgele bir PR ile yazmak yerine |
@zadjii-msft - WDYT? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So yea, this would definitely work for "focus follows mouse". I hate to be that guy though - I think this needs to be a (global) setting. I don't think I'd personally want this setting on, though it's definitely a good idea.
If this is a setting, then we'd need another way of fixing #8925 regardless if the setting was enabled or not. I'm gonna block for discussion, but the implementation is sound.
So I will also be that guy 😄 - if the user selects not to use "focus follow mouse", they will need to focus the pane to get the hyperlink instead of #8475. WDYT? Agree regarding the setting (planned to add it once you agree with the idea) |
@zadjii-msft - WDYT about my previous comment. |
Oh. Well that's annoying. I figured there'd still be a way to get the unfocused hyperlink hovering to work, even without focus follows mouse. The team did discuss this and came to the conclusion that "focus follows mouse" would definitely have to be a setting, probably defaulted to |
@zadjii-msft - I can absolutely solve #8925 separately from this PR. I assumed that probably the users who want to interact with other panes, will also want them focused. If this is not the case I will
BTW I am somewhat worried with the current solution, as right now we send a mouse input when hovering over unfocused panes. Is it intentional? |
😬 almost certainly not |
Please review (if you like it, I will add a documentation) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that-was-easy.jpg
I guess it will continue getting conflicts as I added a setting to the end 😄 |
Oh, just I think the rest of the team is a little bogged down... oh wait nope, nevermind. I never threw Needs-Second on this. My b. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few things:
- If the window is not focused, does it get focus when we hover over a terminal?
- If the tab switcher or command palette is open, does this immediately close it because the terminal gets focus? Or what happens?
- How does this work when the search box is open in multiple panes?
- Update the schema please.
- I have no issues with this being a setting. So please make a PR for the docs repo too 😊
src/cascadia/TerminalSettingsEditor/Resources/en-US/Resources.resw
Outdated
Show resolved
Hide resolved
Nope. The window will remain unfocused. But the pane will become active. Looks good to me, but let me know if you see otherwise.
The CmdPal/ATS remain open as they "hide" the terminal behind them (no pointer move is reported)
In this case the behavior is similar as if you were clicking on the second pane. This one is somewhat questionable. WDYT?
Done.
Doing it right now. Might introduce some extra / miss some "the" 😊 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for looking into those scenarios! I think they're all fine. The search box one is somewhat questionable but I think this makes more sense than closing/ignoring the search box on hover.
Hello @carlos-zamora! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
🎉 Handy links: |
PR Checklist