PCB Editor: Constraining moves to horizontal or vertical is broken
<!-- --------Before Creating a New Issue----------- * Limit report to a single issue. * Search the issue tracker to verify the issue has not already been reported. * Complete all instructions between `template comment markers <>. * Keep report contents limited to the necessary information required to fix the issue. * When creating an issue against the stable version of KiCad, make sure the latest available stable version is installed as issues may have already been resolved in later stable versions. --> # Description In PCB Editor versions prior to 9.0.5, pressing a cursor key while moving an object would constrain the move to that axis only. This has been broken since 9.0.5. In 9.0.5, pressing a cursor key causes the moves no longer snap to any grid while still allowing moves along any axis. In 9.0.6-rc1-2-g790dee114b, pressing a cursor key freezes the item in its current location. Subsequent key presses cause the item to jump to the mouse cursor. Testing version behavior shown in the screencast: ![Screen_Recording_2025-10-14_at_11.07.47](/uploads/531f2b3d251c0af281f6f2d29b201fc8/Screen_Recording_2025-10-14_at_11.07.47.mov) <!-- What is the current behavior and what is the expected behavior? --> <!-- If the issue is visual/graphical, please attach screenshots of the problem. --> <!-- Add the issue details below this line and before the "Steps to reproduce" heading. --> # Steps to reproduce <!-- If there are multiple steps to reproduce it or it is a visual issue, then providing a screen recording as an attachment to this report is recommended. --> <!-- If this issue is specific to a project, please attach the necessary files to this issue. --> <!-- Add the steps to reproduce using the numbers below --> <!-- Add new step numbers before the "KiCad Version" heading. --> 1. Press "m" on on item in the PCB Editor. 2. Wiggle the mouse. 3. Press e.g. the Up arrow key 4. Wiggle the mouse. # KiCad Version ``` Application: KiCad PCB Editor arm64 on arm64 Version: 9.0.6-rc1-2-g790dee114b, release build Libraries: wxWidgets 3.2.8 FreeType 2.14.1 HarfBuzz 12.1.0 FontConfig 2.17.1 libcurl/8.7.1 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.66.0 Platform: macOS Version 26.0.1 (Build 25A362), 64 bit, Little endian, wxMac OpenGL: Apple, Apple M1 Max, 2.1 Metal - 90.5 Build Info: Date: Oct 13 2025 12:50:48 wxWidgets: 3.2.8 (wchar_t,wx containers) Boost: 1.89.0 OCC: 7.8.1 Curl: 8.7.1 ngspice: 44.2 Compiler: Clang 16.0.0 with C++ ABI 1002 KICAD_IPC_API=ON ```
issue