- KeyboardMode::Exclusive → OnDemand: with Exclusive the compositor never sends wl_keyboard::leave, so EventControllerFocus::connect_leave never fires. OnDemand lets Hyprland hand focus back on click-outside. - Move EventControllerKey from search to window, capture phase: bubble phase on SearchEntry let its own handlers consume Enter and arrows first. Capture phase on the window intercepts all keys before any widget sees them, so Enter/Up/Down/Esc always reach our handler. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| main.rs | ||