kicad-developers team mailing list archive
Mailing list archive
Re: Tool actions and hotkeys
Never mind; I found it.
PCBNew already had two commands sharing the same hotkey (Redraw and Place Relative). Evidently that’s benign as long as the loser doesn’t have an action, but produces an assert when it does.
> On 11 Apr 2019, at 23:14, Jeff Young <jeff@xxxxxxxxx> wrote:
> I added an action common.Control.zoomRedraw that’s tied to the hotkey HK_ZOOM_REDRAW. I tried to follow the other examples, but I appear to be missing something.
> It works fine, but on closing the document (PCB_EDIT_FRAME) I get an assert trying to unregister the action because it doesn’t appear in the TOOL_MANAGER’s m_actionHotKeys list.
> Any pointers?
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp