Keepassxc: CMD + W doesn't close window

Created on 2 Feb 2019  路  4Comments  路  Source: keepassxreboot/keepassxc

Summary

The keyboard shortcut CMD + W is meant to close the front window on macOS (as described in this support article: https://support.apple.com/en-us/HT201236).
KeePassXC utilizes this shortcut for closing the current database - so it's basically doing what a browser does when pressing CMD + W (closing the current tab).
The problem is however that the shortcut doesn't close the front window, after it closed the last database.

Desired Behavior

KeePassXC should close the front window after closing the last database and pressing CMD + W again.

This video shows what I mean:
https://drive.google.com/open?id=1sUZKQEDNdI9GqH2PzesPN4r6i_yBqqDr

And here's a video of Safari:
https://drive.google.com/open?id=1qBsAw2dR0k0RkXwSJchjY_1bIYy3Od63

I don't think it should act like Safari entirely - showing the database selection window after closing the last database is fine.
It should close the front window after pressing CMD + W again tho.

Possible Solution

Context

All macOS applications close the front window when pressing CMD + W (or pressing it multiple times, when using a browser with multiple tabs open for example).
Not having this behavior in KeePassXC always throws me off, since I have to use my mouse then to close the window.

bug ux

Most helpful comment

To add to this feature request / UX change 鈥撀爌ersonally, I would prefer the shortcut closes the window _without_ closing the database, as I prefer to leave my default database open (but the window closed) while I do other tasks. For macOS applications which leave some kind of background service running, I am used to being able to close windows without quitting the application (e.g. cmd + q) to leave the application running.

To this end, it would be nice to have a setting which determines what the cmd + w ( or ctrl + w on other OSes, assuming you want to maintain feature parity) actually does:

  • Close current database, leaving the window open
  • Close current window, leaving any databases open
  • Close the current database, closing the window if it is the last open database

This is just a suggestion, but for me at least would be the ideal implementation.

All 4 comments

This isn't really a feature request, but I felt it's too much to call it a bug. So please adjust the labels in a way that is most correct.

To add to this feature request / UX change 鈥撀爌ersonally, I would prefer the shortcut closes the window _without_ closing the database, as I prefer to leave my default database open (but the window closed) while I do other tasks. For macOS applications which leave some kind of background service running, I am used to being able to close windows without quitting the application (e.g. cmd + q) to leave the application running.

To this end, it would be nice to have a setting which determines what the cmd + w ( or ctrl + w on other OSes, assuming you want to maintain feature parity) actually does:

  • Close current database, leaving the window open
  • Close current window, leaving any databases open
  • Close the current database, closing the window if it is the last open database

This is just a suggestion, but for me at least would be the ideal implementation.

Update from a user perspective: with KeePassXC 2.6.0 I am now able to achieve closer to what I was looking for with cmd + m which properly minimizes to tray now instead of minimizing to the Dock. Even though cmd + w still closes the database, I'm mostly satisfied just by using this shortcut instead.

For others awareness, cmd + Shift + m directly minimizes to tray even if you don't have "Minimize to tray" setting enabled.

Was this page helpful?
0 / 5 - 0 ratings