-
Notifications
You must be signed in to change notification settings - Fork 35
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
Disable macOS click-through on ST3 window #2210
Comments
Related: #1720 and some comments on the current support for click-through on the forums |
I've spent a little time looking into this, and it doesn't seem entirely clear cut what the "correct" answer is. I just tried Safari, Calendar, Messages and some third party apps I use regularly. All of them performed a click-through and selected the item I clicked on when the app was inactive. |
@wbond Here's how to reproduce. Open the native Calculator app while having Finder's window open in the background. Now click on one of the items in the Finder sidebar. It won't be selected. You'll have to click on it once again to do that. Your first click just brings the Finder window to the foreground and does nothing more. This is the desired behavior for ST. Yes you can go to a specific tab in Safari by clicking on it even if the window is in the background but you can't click any html link inside the content window right away. Since you may perform an undesired unintended action this way Important! You should check only the native macOS apps. 3rd party ones built with Electron may have a different (incorrect) behavior. -- My suggestion is to leave the click-through behavior for tabs and open files but make them react to mouseover when the window is inactive and disable click-through for sidebar items and minimap. |
@websash I prefer disabling click-through for ST completely, as clicking in almost any spot in ST window will change the context I was in before leaving ST. So clicking on open files/tabs just brings up a new file (I have tabs in sidebar btw.), instead of the file I was working on before googling, for example. I forced to press ctrl+tab every time after I return back to ST :( |
Same here. I wish clicking in the window only raised the window and did not action anything inside the window. I wish this Apple UI guideline was better respected (in general, many other apps violate this as well, which is unfortunate). |
As far as I am concerned, I wish click-though is never forbidden, and enabled everywhere. And I do not care about Apple guidelines, which is preventing everyone being efficient, only because a very few people at some time in the past clicked-though a bad button |
Click-through is one of the things which differs macOS from other OSs. In two words, in macOS clicking on a background window (which doesn't have focus) only makes it active, without passing the click to the window itself. So you don't accidentally make unwanted action inside the app while just trying to bring the app to foreground.
Although all other apps in macOS has it disabled, currently, ST3 window has 'click-though' feature enabled, which is against Apple guidelines:
Last point is exactly my case, as ST3 while being in background only has it's sidebar visible, so switching from Safari to ST3 only possible by clicking files/folders in ST3 sidebar, which changes currently opened file in ST3 (= switches context).
No other apps do that, they all require two clicks to perform an action when the app was in background.
Here is one poor guy asking for the same, but on windows: https://forum.sublimetext.com/t/focus-on-click-in-windows/12575
For me, click-through works for sidebar with project files/folders, also for 'vertical tabs', which are resided above project folders, also for minimap.
The text was updated successfully, but these errors were encountered: