← Back to team overview

kicad-developers team mailing list archive

Re: Joy of multi-platform development

 

Le 16/08/2018 à 12:11, Jeff Young a écrit :
> Hi JP,
> 
> Your menu fix for LINUX does work for OSX as well.  The problem is that
> because it didn’t understand the hotkey *before* your fix it ends up
> writing 0 (“<unassigned>”) into the hotkeys config, so you have to have
> your fix *and* you have to reset your hotkeys to default.
> 
> Is there any way around that second part, or should we just live with it?
> 
> Cheers,
> Jeff.
> 

Looks like Backspace key creates issues.
Issues depend on the way used to assign a accelerator key to a menu.

In Legacy mode, the accelerator key is a string added to the menuitem label.
In Gal mode, the accelerator key is added by a wxAcceleratorEntry.

For the specific '\b' code, the wxAcceleratorEntry does not show the
accelerator in menu (both on Linux and Windows), but when added in menu
label, it works on Linux (as said previously, not on Windows).

I am currently working on it to try to understand what happens.

It takes a while because Windows, Ubuntu/KDE and Ubuntu/Unity does not
show exactly the same menu.

Besides, Kicad uses "BkSp" as accelerator string (working on Windows)
but it should be "Back".
-- 
Jean-Pierre CHARRAS


Follow ups

References