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

Help-plugin and Keybinder-plugin fighting against F1 hotkey

<< < (3/3)

Pecan:

--- Quote from: thomas on August 21, 2006, 09:17:54 pm ---Well, one could still register to EVT_APP_STARTUP, then start a 500ms timer and set the F1 hotkey as soon as the timer fires  :shock:

--- End quote ---

I'll fix this when I get home this week.

I'm guessing that KeyBinder never saw the  menu key when it walked the menu at startup. I'll verify that and/or find a fix.

Pecan:
I believe I understand the problem.

Menu keys are being assigned after keyBinder initialization and keyBinder never sees or records them.

I think keyBinder needs to walk the menu structure and record the key assignments at CB close.

Too bad; lots of overhead.

The only other way: sit on an event thats says that the menu structure has changed. Lots of overhead there too.

tiwag:

--- Quote from: Pecan on August 25, 2006, 06:49:09 pm ---I believe I understand the problem.

Menu keys are being assigned after keyBinder initialization and keyBinder never sees or records them.

I think keyBinder needs to walk the menu structure and record the key assignments at CB close.

Too bad; lots of overhead.

The only other way: sit on an event thats says that the menu structure has changed. Lots of overhead there too.



--- End quote ---

why not simply skipping F1 assignment ?
it's hardcoded to the help plugin anyways ...

Pecan:

--- Quote from: tiwag on August 25, 2006, 08:32:06 pm ---
--- End quote ---
why not simply skipping F1 assignment ?
it's hardcoded to the help plugin anyways ...
[/quote]

Because this is indicative of what would happen when other plugins decide to assign dynamic menu keys.

It should be solved or else it's gonna come back to bite us in the re"ass"ignment. :D

Pecan:
Fixed SVN 2944

* cbKeyBinder v0.4.25d
- record dynamically changed menu items
- Get menu shortcuts via wxAcceratorEntry to appease wxGTK
- Add file name to corrupted file message
- Non Destructive update of menu items
- backup of .ini file to .ini.bak before delete/save

Navigation

[0] Message Index

[*] Previous page

Go to full version