Rich Text Editor: Inconsistent Esc behaviour in search
Operating system
macOS
Joplin version
3.5.12
Desktop version info
Joplin for Desktop
Copyright © 2016-2026 Laurent Cozic Joplin 3.5.12 (prod, darwin)
Device: darwin, Apple M1 Client ID: e0817b0b571147bc966fc670d2b8bf1b Sync Version: 3 Profile Version: 49 Keychain Supported: Yes Alternative instance ID: -
Revision: 449555c
Backup: 1.5.1 Freehand Drawing: 4.2.0 macOS theme: 1.5.20 Note Rename: 1.0.0 Record: 1.5.0 Tagging: 1.0.3 Toggle Editor Menu & Keyboard Shortcut: 1.0.1
Current behaviour
When you open the Search in current note/Find & replace (Command + F) dialog and search for a piece of text, the view jumps to where the matching text is and the matching text is selected.
At this point, if you press the Esc key, the search dialog closes.
The first time you do that (search and press Esc), the view jumps back to where it was before you searched for the text.
The second time you search and press Esc, the search dialog closes but now the view stays where the matching text is.
That is inconsistent, and breaks expectations.
Only seems to happen in the rich text editor. In the raw Markdown editor, the view always stays, never jumps back.
Video: https://github.com/user-attachments/assets/21a69f0e-e3cd-4825-913e-bedc936fe4f4
__
Expected behaviour
When pressing Esc and closing the search dialog, the view should always stay where it is when you press the key and never jump back to where it was before.
Logs
No response
Source: laurent22/joplin