Find and Replace in Schematic Editor does Replace All on Cmd+A (Select All shortcut/hotkey)
Description
The Find and Replace dialog appears to have a secret shortcut to Replace All on Cmd+A regardless of whether focus is on the text box or not. While I understand that the Cmd+A shortcut for Select All isn't universally implemented in most text boxes in KiCad (yet), a secret extra undocumented shortcut seems like really bad form.
There is a spot for this in the hotkeys list, but it isn't set on my install (I assume not set by default). Regardless, the default for this hotkey should not be the standard "select all" shortcut.
Perhaps relatedly, it seems like the Undo function should work on the schematic while focus is on the Find and Replace dialog. At the moment, I have to close the dialog entirely to undo the Replace All I keep accidentally doing.
Steps to reproduce
- Open new schematic
- Add text object with "hello world"
- Add text object with "hello devs"
- Open Find and Replace dialog
- Type "hello" into the find box
- Note that
- Attempt to select everything you've written in the find box with Cmd+A
- See that the Replace All has executed surprisingly, erasing all instances of "hello"
- Attempt to undo with Cmd+Z
- See that the Edit menu flashed as if something executed, but nothing changes
- Close Find and Replace dialog
- Attempt to undo with Cmd+Z
- See that the replace all has been undone
KiCad Version
Application: KiCad Schematic Editor x86_64 on x86_64
Version: 7.0.1-0, release build
Libraries:
wxWidgets 3.2.2
FreeType 2.12.1
HarfBuzz 5.3.1
FontConfig 2.14.0
libcurl/7.86.0 SecureTransport (LibreSSL/3.3.6) zlib/1.2.11 nghttp2/1.47.0
Platform: macOS Ventura Version 13.2.1 (Build 22D68), 64 bit, Little endian, wxMac
Build Info:
Date: Mar 11 2023 12:55:46
wxWidgets: 3.2.2 (wchar_t,wx containers)
Boost: 1.80.0
OCC: 7.6.3
Curl: 7.77.0
ngspice: 38
Compiler: Clang 13.0.0 with C++ ABI 1002
Build settings:
KICAD_SPICE=ON