Skip to main content

Window Behavoior Feature

2 replies [Last post]
blatherskite
Offline
Joined: 08/17/2009

I like the new pukka, unfortunately I've never been a fan of how the windows behave.

Here's how it should work:

-If i'm in the submit link window, and press the escape key, the window should be closed, and the app that I was on should be brought back to the foreground. Currently, pukka just clears the window, I then have to press "cmd+w", then "alt+tab" to get back to my browser.

-When I click the pukka icon in the menubar and hit escape, the app I was on should be brought back to the front.

You can accomplish some of these tricks in cocoa:

NSWorkspace * ws = [NSWorkspace sharedWorkspace];

NSDictionary * activeApp = [ws activeApplication];

[ws launcApplication:[activeApp valueForKey:@"NSApplicationPath"]];

I'll leave it up to you to figure out when exactly you need to record this info, and how to handle bringing the active app back in the foreground.

0
Justin
Justin's picture
Offline
Joined: 05/28/2008
Those are some neat ideas.

Those are some neat ideas. Twitterrific's focusing behaves similarly (minus the Esc) and I have aimed for previous-app-focus after post-hide in Pukka. I hadn't considered this (at least, not in a long time) for when you are otherwise leaving the app. I will definitely give it some thought. Thanks for the input.

Jono
Offline
Joined: 07/13/2009
Yea, I agree. It would be

Yea, I agree. It would be good if it worked like that, it makes sense :)

Want to join the forums? Create an account or login.