Skip to content
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

CMD+H / CMD+W shortcuts support on macOS #99

Closed
pieterclaerhout opened this issue Apr 27, 2018 · 5 comments
Closed

CMD+H / CMD+W shortcuts support on macOS #99

pieterclaerhout opened this issue Apr 27, 2018 · 5 comments
Assignees
Labels
💡 feature request New feature or request ✅ merged A fix for this issue has been merged
Milestone

Comments

@pieterclaerhout
Copy link

Storage Explorer Version: 1.0

OS Version: any macOS version

Steps to Reproduce:

  1. Open Storage Explorer
  2. Presss CMD+H on the keyboard.
  3. Nothing happens

Expected Experience:

The expected behaviour is that the app gets hidden, just like all other mac apps are doing.

Actual Experience:

Nothing happens as the CMD+H shortcut is not defined in Storage Explorer as you can see in the following screenshots:

Azure Storage Explorer

screen shot 2018-04-27 at 10 59 08

Standard Mac App (Safari in this case)

screen shot 2018-04-27 at 10 59 01

Azure Storage Explorer should have the standard options in the menu:

  • Hide Storage Explorer
  • Hide Others
  • Show All

Also, the shortcut CMD+F4 is very not-mac. Closing a window on a mac is done by CMD+W, so you might want to change that as well.

Also, the commands New Window and Close Windoware normally defined under the Filemenu on macOS.

@pieterclaerhout pieterclaerhout changed the title CMD+H support on macOS CMD+H / CMD+W shirtcuts support on macOS Apr 27, 2018
@pieterclaerhout pieterclaerhout changed the title CMD+H / CMD+W shirtcuts support on macOS CMD+H / CMD+W shortcuts support on macOS Apr 27, 2018
@craxal craxal added the 💡 feature request New feature or request label Apr 27, 2018
@MRayermannMSFT MRayermannMSFT added this to the 1.3.0 milestone May 10, 2018
@MRayermannMSFT MRayermannMSFT self-assigned this Jun 5, 2018
@MRayermannMSFT
Copy link
Member

Hey @pieterclaerhout , I'm working on this right now. Let me know if you have any other feedback regarding our menus on OSX, as I'm going to be taking a comprehensive look to see if what we're doing feels/looks right.

@pieterclaerhout
Copy link
Author

New Window should actually be in the File menu as well.

And in the File menu, there should also be a "Close" menu item with the shortcut "CMD+W" which is used to close the current window.

"Close Editor" under the "Microsoft Azure Storage Explorer" is also having a very non-mac shortcut CMD+F4.

The standard behaviour on mac is to use CMD+W for both closing the tabs as well as the window. If a tab is open, CMD+W should close the tab. If no tabs are open, CMD+W should close the window…

@pieterclaerhout
Copy link
Author

Also Help > Reload should use CMD+R as the shortcut on the mac instead of CTRL+R.

@MRayermannMSFT
Copy link
Member

Alright, I was able to do almost all of your feedback.

Here's new app menu:
image
There is now "Hide Storage Explorer", "Hide Others" and "Show All".

Here's the File menu (which previously didn't show on macOS):
image
I moved "New Window" and "Close Current Editor" to this menu, and also added "Close Window'

And here's the Help menu:
image
With reload now having CMD+R.

One caveat to these changes though is that "Quit" and "Close Window" do the same thing. When you click "New Window" we aren't just opening a window. Instead, we are starting up an entirely new instance of Storage Explorer. Doing the right thing, just opening a window, is in our backlog, so when we get to that, we'll make the behavior of "Close Window" actually just close the current window.

@MRayermannMSFT
Copy link
Member

Merged into master for 1.3.0.

@MRayermannMSFT MRayermannMSFT added ✅ merged A fix for this issue has been merged and removed pending labels Jun 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 feature request New feature or request ✅ merged A fix for this issue has been merged
Projects
None yet
Development

No branches or pull requests

3 participants