()
| 224 | // Ensure input is usable after restore |
| 225 | // Listen for restore |
| 226 | const handleWindowRestore = async () => { |
| 227 | restoreWindowKeyboardFocus( |
| 228 | createWindowKeyboardFocusTarget(getCurrentWindow()), |
| 229 | focusSnapshot, |
| 230 | 100 |
| 231 | ); |
| 232 | |
| 233 | // Run once |
| 234 | window.removeEventListener('focus', handleWindowRestore); |
| 235 | }; |
| 236 | |
| 237 | // Listen for restore |
| 238 | window.addEventListener('focus', handleWindowRestore, { once: true }); |
nothing calls this directly
no test coverage detected