Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

Keybinder v2 notes/problems

<< < (7/15) > >>

Pecan:

--- Quote from: oBFusCATed on March 22, 2020, 11:38:29 am ---I've lost all my shortcuts again. I'm on 11979.
See the config file attached.

Does the plugin logs when it fails to set a shortcut? I don't see any error/warning messages.

--- End quote ---


rev 11979 is before the keybinder fixes. Update your keybinder plugin.

oBFusCATed:
If I see correctly

--- Code: ---    * Keybinder 2.0.11 2020/03/02 fix missing/conflicting shortcuts when using older .conf on newer build
      - Check for mismatched menu id's to global accelerators id's
        Cf.,This will allow a global to override an old menu item.This happends when a new build does not match the current .conf file
        The non-matching .conf menu item has an incorrect id anyway.
      - When a .conf menu id matches a default( current structure) menu id, also make sure the menu path (parentMenu) also matches.
        It can mismatch when using a keybinder .conf configured from a previously built version of CodeBlocks on a newer build.
      - Set the global accelerators table before calling Initilaize::Update() else globals are missed on the first invocation of KeyBinder/Configure.
   
   
    git-svn-id: https://svn.code.sf.net/p/codeblocks/code/trunk@11974 2a5c6006-c6dd-42ca-98ab-0921f2732cef

--- End code ---

is the last commit for the keybinder and its revision is 11974... I'm talking about commits in trunk/master.

Pecan:

--- Quote from: oBFusCATed on March 22, 2020, 11:38:29 am ---I've lost all my shortcuts again. I'm on 11979.
See the config file attached.

Does the plugin logs when it fails to set a shortcut? I don't see any error/warning messages.

--- End quote ---

Fixed At revision: 11993
KeyBinder 2.0.12 2020/03/23 Match .conf to menu structure (by menu titles) to replace old menu ids with newer.

oBFusCATed:
Should I pick this for 20.xx?

Pecan:

--- Quote from: oBFusCATed on March 24, 2020, 09:31:16 pm ---Should I pick this for 20.xx?

--- End quote ---

Yes, please do. It compares by menu title as you had suggested.
It can now find the new menu id when the menu structure changes.
Thus preserving user defined accelerators even when the menu structure is radically changed by a new build.

 

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version