#125

Keep Ctrl+F working after closing the find bar with an input method

Openrboarescuwants to merge intofrom

With fcitx5 as the input method (QT_IM_MODULE=fcitx, Omarchy's default), closing the find bar with Esc often left the next Ctrl+F ignored until a click or scroll in the document. With QT_IM_MODULE=none it always worked.

Why

  • closeSearch() hid the search field while it still held focus, and only then focused the editor, so the input method was briefly left with nothing focused.

What changes

  • Reset the input method and focus the editor first, then hide the bar. That is the order a click in the text produces.

Tested on Omarchy with fcitx5 and a real keyboard: Ctrl+F reopens the bar every time. (Virtual-keyboard input through wtype never reproduced the problem, so there is no automated test for it; the existing Escape tests still pass.)

🤖 Generated with Claude Code

Activity

0

No activity yet.