Zach Waugh
89483e7e89
feat: add macOS-only api to determine if app is currently active ( #49622 )
...
* feat: add macOS-only api to determine if app is currently active
You can `focus()` the app and get events for `did-become-active`, but there's currently not a way to directly check if your app is the active (foreground) application.
* test: add unit test for app.isActive api
* fix: ensure we hide app after showing in test
If the app is still active, it may affect other tests like dock.bounce
that behave differently depending on whether the app is active
* docs: simplify isActive api description
2026-03-02 11:47:37 -05:00
..
2025-10-03 14:10:29 -05:00
2025-10-05 12:32:28 -05:00
2023-08-04 10:47:29 +02:00
2026-03-02 11:47:37 -05:00
2026-02-12 17:25:20 -05:00
2025-08-05 02:03:06 +09:00
2025-08-05 02:03:06 +09:00
2025-04-23 17:55:18 -05:00
2026-02-26 09:22:42 -06:00
2026-02-26 09:22:42 -06:00
2026-02-26 09:22:42 -06:00
2025-10-14 15:58:27 +02:00
2026-02-12 12:37:56 -05:00
2026-02-12 12:37:56 -05:00
2026-02-12 12:37:56 -05:00
2025-07-21 16:34:38 +02:00
2024-07-25 11:25:45 +02:00
2026-01-23 20:29:01 +09:00
2026-01-23 20:29:01 +09:00
2026-02-12 12:37:56 -05:00
2026-02-12 12:37:56 -05:00
2024-09-10 16:05:57 -07:00
2026-02-17 14:25:21 -05:00
2025-08-05 02:03:06 +09:00
2025-09-13 08:19:07 +09:00
2025-08-05 02:03:06 +09:00
2025-08-05 02:03:06 +09:00
2025-07-21 16:34:38 +02:00
2021-11-22 16:34:31 +09:00
2025-08-05 02:03:06 +09:00
2025-08-05 02:03:06 +09:00
2026-01-09 22:57:38 -08:00
2025-08-05 02:03:06 +09:00
2025-08-05 02:03:06 +09:00
2025-08-05 02:03:06 +09:00
2025-09-24 19:42:22 -05:00
2026-02-26 10:40:29 -05:00
2025-11-05 11:00:51 -08:00
2025-03-28 11:50:07 -07:00
2026-02-27 12:47:05 -05:00
2026-02-27 12:47:05 -05:00
2026-02-26 14:57:54 -05:00
2026-01-29 16:38:26 -05:00
2023-08-23 09:54:21 -04:00
2025-10-13 12:21:54 -04:00
2025-09-08 12:57:15 +02:00
2026-02-12 12:37:56 -05:00
2026-02-12 12:37:56 -05:00
2026-03-02 11:38:51 -05:00
2026-03-02 11:38:51 -05:00
2025-05-21 10:00:38 -05:00
2025-05-21 10:00:38 -05:00
2026-01-25 22:51:31 -06:00
2026-01-25 22:51:31 -06:00
2026-01-22 17:31:38 -06:00
2026-01-22 17:31:38 -06:00
2025-07-21 16:34:38 +02:00
2026-01-22 17:01:09 -05:00
2025-09-22 20:16:27 -07:00
2026-02-12 12:37:56 -05:00
2025-08-05 02:03:06 +09:00
2026-02-12 12:37:56 -05:00
2026-02-15 19:54:50 +01:00
2026-02-15 19:54:50 +01:00
2026-01-27 16:27:38 -05:00
2026-01-27 16:27:38 -05:00
2025-08-05 02:03:06 +09:00
2025-08-05 02:03:06 +09:00
2025-11-07 10:13:45 -05:00
2025-09-10 11:16:35 -05:00
2026-02-12 12:37:56 -05:00
2026-02-12 12:37:56 -05:00
2026-02-12 12:37:56 -05:00
2026-02-12 12:37:56 -05:00
2025-10-21 14:26:30 -04:00
2026-02-12 12:37:56 -05:00
2025-08-07 19:25:50 +02:00
2025-08-07 19:25:50 +02:00
2026-02-25 12:53:06 -05:00
2026-02-25 12:53:06 -05:00
2026-01-30 15:18:56 -05:00
2026-01-30 15:18:56 -05:00
2024-09-25 06:19:39 -05:00
2025-04-23 20:33:50 -05:00
2026-02-24 15:48:04 +01:00
2026-02-24 15:48:04 +01:00
2026-03-02 11:24:48 -05:00
2026-02-24 16:42:05 -05:00
2025-08-05 02:03:06 +09:00
2025-08-05 02:03:06 +09:00
2026-02-12 12:37:56 -05:00
2025-11-12 12:53:00 -06:00
2025-10-23 16:28:51 -04:00
2025-09-08 12:57:15 +02:00
2025-09-22 20:16:27 -07:00
2026-02-12 12:37:56 -05:00
2026-02-12 12:37:56 -05:00
2026-02-12 12:37:56 -05:00
2026-02-12 12:37:56 -05:00
2025-08-27 09:30:50 +09:00
2025-08-05 02:03:06 +09:00
2025-08-05 02:03:06 +09:00
2024-09-17 01:38:56 -07:00
2022-02-09 18:58:52 -08:00
2024-07-25 11:25:45 +02:00
2024-07-29 12:42:57 -05:00
2022-06-29 12:55:47 -07:00
2022-06-29 12:55:47 -07:00