fmt
Check if app is active when showing/hiding it via global keys; fixes #286