Incorrect ordering of left click and escape events with small time deltas.
Description
When pressing escape soon after left clicking to complete an operation KiCad acts as in the escape key was pressed first and cancels the operation. This seemingly applies to all tools in the schematic, footprint, and PCB editor.
I have attached a video of moving a pin in the footprint editor. As shown, the escape key press happens approximately 60ms after left clicking but KiCad acts as if the escape key was pressed first.
simplescreenrecorder-2025-04-01_15.08.14
Steps to reproduce
- Move an item.
- Left click.
- Press escape within a few tens of milliseconds.
KiCad Version
Application: KiCad Symbol Editor x86_64 on x86_64
Version: 9.0.1, release build
Libraries:
wxWidgets 3.2.7
FreeType 2.13.3
HarfBuzz 9.0.0
FontConfig 2.15.0
libcurl/8.11.1 OpenSSL/3.3.3 zlib/1.3.1 libidn2/2.3.7 libpsl/0.21.5 nghttp2/1.65.0
Platform: Freedesktop SDK 24.08 (Flatpak runtime), 64 bit, Little endian, wxGTK, X11, KDE, x11
OpenGL: NVIDIA Corporation, NVIDIA GeForce RTX 4070 SUPER/PCIe/SSE2, 4.6.0 NVIDIA 570.133.07
Build Info:
Date: Mar 30 2025 06:27:59
wxWidgets: 3.2.7 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.87.0
OCC: 7.9.0
Curl: 8.11.1
ngspice: 44.2
Compiler: GCC 14.2.0 with C++ ABI 1019
KICAD_IPC_API=ON
Locale:
Lang: en_US
Enc: UTF-8
Num: 1,234.5
Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)