OS X behaves in that way by default, very handy.