Detect click on dock

6 views
Skip to first unread message

Tom Moor

unread,
Apr 24, 2013, 9:41:50 AM4/24/13
to node-...@googlegroups.com
It's all in the title - is an API available for this? I want to hide our app when clicking close, and show it when clicking the dock - similar to how many OSX apps work.

Tom Moor

unread,
Apr 24, 2013, 10:23:05 AM4/24/13
to node-...@googlegroups.com
Ok, it looks like you can use the window focus event to detect this. 

The only thing i'm missing is being able to tell the difference between clicking on the close button in the window and hitting CMD+Q, in apps such as Spotify and Skype these two actions are handled differently.

"Ionuț G. Stan"

unread,
Apr 25, 2013, 7:34:36 AM4/25/13
to node-...@googlegroups.com
IMO, this feature should be handled by node-webkit. Most of the apps on
OS X don't quit when you close the last opened window. There are
exceptions, but that only means the feature should be configurable.

I'd open a ticket for this.
> --
> You received this message because you are subscribed to the Google
> Groups "node-webkit" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to node-webkit...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>


--
Ionuț G. Stan | http://igstan.ro

Tom Moor

unread,
Apr 25, 2013, 7:35:59 AM4/25/13
to node-...@googlegroups.com

Yep, agreed. There is already an open issue on his feature :)

On 25 Apr 2013 12:34, Ionuț G. Stan <ionut....@gmail.com> wrote:
IMO, this feature should be handled by node-webkit. Most of the apps on OS X don't quit when you close the last opened window. There are exceptions, but that only means the feature should be configurable.

I'd open a ticket for this.


On 24/Apr/2013 17:23, Tom Moor wrote:
Ok, it looks like you can use the window focus event to detect this.

The only thing i'm missing is being able to tell the difference between
clicking on the close button in the window and hitting CMD+Q, in apps
such as Spotify and Skype these two actions are handled differently.


On Wednesday, 24 April 2013 14:41:50 UTC+1, Tom Moor wrote:

    It's all in the title - is an API available for this? I want to hide
    our app when clicking close, and show it when clicking the dock -
    similar to how many OSX apps work.

--
You received this message because you are subscribed to the Google
Groups "node-webkit" group.
To unsubscribe from this group and stop receiving emails from it, send

For more options, visit https://groups.google.com/groups/opt_out.




--
Ionuț G. Stan  |  http://igstan.ro

--
You received this message because you are subscribed to a topic in the Google Groups "node-webkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-webkit/d6q0rScPc8I/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to node-webkit+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages