Minimize plugin

Hi! I'm working on a plugin that appears as a widget on the right side. I want to make a feature where the user can hit "Escape" to minimize the widget. How can I do that?

Thanks!

4 comments
Comment actions Permalink

Please consider not doing that. The Esc key in a toolwindow already has a well-defined meaning - it moves the focus from the toolwindow into the editor. To close the toolwindow, a different keyboard shortcut is used (Window | Active Window | Hide Active Tool Window, Shift-Esc in the default keymap). You can override these shortcuts in your plugin, but this would cause your toolwindow to behave differently from all other toolwindows in the product, which will lead to user confusion and frustration. 

0
Comment actions Permalink

Is there any property that I can set to make the plugin automatically minimizing itself?

0
Comment actions Permalink

This is something that the user controls (by clicking on the gear icon in the toolwindow header and selecting/unselecting "Pinned mode"). Once again, you can override this as a plugin developer, but it's better to follow the UI conventions of the rest of the product and leave the user in control.

0
Comment actions Permalink

We have beta testers who give feedbacks that they would like the plugin to automatically hide. I guess we can do trials to see what the users prefer. How can I override this preference as a plugin developer?

0

Please sign in to leave a comment.