mastodon-sc / mastodon

Mastodon – a large-scale tracking and track-editing framework for large, multi-view images.
BSD 2-Clause "Simplified" License
67 stars 20 forks source link

Add an action to close a view window. #47

Closed tinevez closed 6 years ago

tinevez commented 6 years ago

To properly close the view, we send it aWINDOW_CLOSING event. This way, the listeners of theJFrame are called and the closing happens gracefully within Mastodon.

tpietzsch commented 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...

tinevez commented 6 years ago

Yes.

tinevez commented 6 years ago

Can we add 'per-platform' keystroke?

tpietzsch commented 6 years ago

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.

tinevez commented 6 years ago

It's Ctrl-W on Windows platforms and Linux.

tpietzsch commented 6 years ago

I added close actions for PreferencesDialog and TagSetDialog.