Closed tinevez closed 6 years ago
You set keystroke ctrl W
. It should be meta W
(==cmd W
) for MacOs. And I would add the respective default keystrokes for Windows and Linux (Ubuntu or whatever standard flavour...).
...maybe check what IJ does on other platforms. It has cmd-W for closing Images on MacOs...
Yes.
Can we add 'per-platform' keystroke?
Sounds difficult to fit into the ui-behaviour. The way I would do it is that we provide default keymaps for different platforms. And then pre-select the appropriate default for the platform the first time mastodon is started.
It's Ctrl-W on Windows platforms and Linux.
I added close actions for PreferencesDialog
and TagSetDialog
.
To properly close the view, we send it a
WINDOW_CLOSING
event. This way, the listeners of theJFrame
are called and the closing happens gracefully within Mastodon.