Custom Hotkey assignment not working in schematic editor

Description

Hi everyone,

First of all, thanks for this new, improved version of Kicad. The new feature list reads great. 😄

However, I'm stopped in my tracks right at the start. I installed the new version (see below) and started with a clean slate. I then changed the Hotkey for duplicating symbols from "None" to "C". "C" is by standard the Hotkey for breaking a signal out from a Bus. Now C does nothing at all or complains that there is no bus selected. This did work in Kicad 6.

Steps to reproduce

  • Have a clean install of Kicad.
  • Start new schematic.
  • Insert some symbols.
  • go to Preferences → Preferences… → Hotkeys
  • Assing "C" to "Duplicate Symbol", approve the Change in the following dialog
  • Close Preferences with "OK"
  • In schematic editor place mouse cursor over symbol, hit "C" → nothing happens, expected is that symbol is duplicated
  • Close schematic editor
  • Open schematic again
  • Place mouse cursor over symbol, hit "C" → Error message: "No bus selected"
  • Check Preferences → Preferences… → Hotkeys: Hotkey is still assigned to "Duplicate Symbol"
  • Close Preferences with "OK"
  • Place mouse cursor over symbol, hit "C" → nothing happens, expected is that symbol is duplicated

Hope this helps to find this bug quickly. 😄

KiCad Version

Application: KiCad Schematic Editor x64 on x64

Version: 7.0.2, release build

Libraries: wxWidgets 3.2.2 FreeType 2.12.1 HarfBuzz 6.0.0 FontConfig 2.14.1

Platform: Windows 10 (build 19045), 64-bit edition, 64 bit, Little endian, wxMSW

wxWidgets: 3.2.2 (wchar_t,wx containers)
Boost: 1.81.0
OCC: 7.6.3
Curl: 7.88.1-DEV
ngspice: 40
Compiler: Visual C++ 1934 without C++ ABI

Build settings: KICAD_SPICE=ON

Edited by KiCad Bot