← Back to team overview

kicad-developers team mailing list archive

Re: cvPCB Hotkey Handling



Thanks for the pointer. I looked through the CVPCB_ACTIONS code last night,
and I came to the conclusion that it is only active in the footprint viewer
window (that seems to be where the tool manager for them is instantiated).
(also those tools also don't seem to have a user-configurable hotkey
either) . I think addding the copy/paste/delete as tools would require some
refactoring of the current action code, which I would like to avoid.

The method you pointed to in the other window object looks like a good fit
for cvpcb (there aren't going to be many hotkeys, and the ones there are
will be pretty standard). So I will give that method a try and see how it


On Tue, 28 May 2019, 4:07 p.m. Jeff Young, <jeff@xxxxxxxxx> wrote:

> Hi Ian,
> The tool architecture allows hotkeys to be assigned to ACTIONs, which are
> then executed by a TOOL.  So you’d need to define cut/copy/paste
> CVPCB_ACTIONs, and also give cvPCB a hotkeys file (and allow them to be
> edited).
> But I don’t think we need to support editable hotkeys for
> cut/copy/paste/delete.  I’d be more inclined to do a light-weight solution
> inside the wxWidget.  See GRID_TRICKS for an example.
> Cheers,
> Jeff.
> > On 28 May 2019, at 13:29, Ian McInerney <Ian.S.McInerney@xxxxxxxx>
> wrote:
> >
> > I am currently looking into adding some usability features to cvPCB
> (copy/paste, single association delete, etc.) and want to also include the
> relevant hotkey assignments for them. I am slightly confused where the
> hotkey handling for cvPCB is handled though, since I can't see any handling
> for it in the mainframe class. I do see that the tool manager exists for
> the footprint preview frame, so it can handle those hotkeys. Does anyone
> recall if cvPCB has hotkey handling in the mainframe already?
> >
> > Thanks,
> > -Ian
> > _______________________________________________
> > 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

Follow ups