Files
Yannick Tocquet 2e7c5bb91f 🐛 Guard event.key before toLowerCase in search keydown handler
The global keydown handler calls event.key.toLowerCase() without checking
that event.key is defined. Some keydown events carry no key property
(browser autofill, IME composition, some mobile virtual keyboards), which
throws TypeError: Cannot read properties of undefined (reading
'toLowerCase') and breaks the handler for that keystroke.

Add a truthiness guard before calling toLowerCase(), matching the style
already used for the other event.key comparisons in the same handler.
No behavior change for real Cmd/Ctrl+K presses.
2026-09-03 16:34:26 +01:00
..
2022-09-10 20:05:37 +01:00
2026-02-26 13:35:29 +08:00
2026-08-21 02:17:22 +01:00
2025-10-11 15:24:21 +08:00
2025-12-22 09:53:58 +08:00
2022-09-10 20:05:37 +01:00