adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.25k stars 7.63k forks source link

Mac: File Tree does not receive focus on mouse right-click #9849

Open redmunds opened 9 years ago

redmunds commented 9 years ago

Recipe

  1. Open Brackets
  2. Switch focus to another app
  3. Right-click on a folder in file tree
  4. Verify that folder is highlighted and context menu is displayed

Results on Mac Focus stays with other app so context menu doesn't receive mouseover highlighting, accept clicks, or dismiss when Esc key is clicked.

Results on Windows Focus switches to Brackets and context menu works.

RaymondLim commented 9 years ago

@redmunds I can't reproduce it with an actual right mouse click (with an external mouse attached) or two finger click on a folder on my Mac 10.8.5. The only time I can reproduce it is using Ctrl click on a folder.

peterflynn commented 9 years ago

@redmunds Randy, can you confirm this only happens with the Ctrl-click form of right clicking?

redmunds commented 9 years ago

@RaymondLim @peterflynn This happens for me with a mouse. Still repros.

With that said, is there such a thing as a Mac mouse with a right-click button? I thought a Mac mouse only had a single button.

I plugged in a USB 2-button mouse and it works as expected. I assume that the mouse uses Ctrl-click to emulate right-click, but I don't really know if there's a difference.

peterflynn commented 9 years ago

@redmunds I'm still confused :-) "I plugged in a USB 2-button mouse and it works as expected" implies no bug. Is there a different kind of mouse that you need to repro the bug? Or did you mean "as expected" to mean 'the bug occurs as described above'?

redmunds commented 9 years ago

"I plugged in a USB 2-button mouse and it works as expected" means that I didn't know that Mac supported a 2-button mouse (from a Windows machine), but I plugged it in anyway, and it works on Mac as I expect on Windows.

Yes, bug occurs for me using previously described mouse.