Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
cbKeyBinder Plugin for HEAD
tiwag:
yesterday i started using the cbKeyBinder plugin and at the first look it worked ok.
but after i started modifying my shortcut-assignments and did a few restarts of CB, the keys got messed up .
there suddenly was an offset of -2 in my keybindings
let me explain by a table for the Edit menu:
menu entry my assignment messed up state
Undo Ctrl-Z Ctrl-X
Redo Ctrl-Shift-Z Ctrl-C
Cut Ctrl-X Ctrl-V
Copy Ctrl-C F11
Paste Ctrl-V Ctrl-B
...
btw- does keybinder plugin assist personalities ?
thomas:
--- Quote from: tiwag on December 13, 2005, 08:41:49 am ---btw- does keybinder plugin assist personalities ?
--- End quote ---
If it uses ConfigManager, it has no choice. Personalitites are transparent.
tiwag:
--- Quote from: thomas on December 13, 2005, 09:05:14 am ---
--- Quote from: tiwag on December 13, 2005, 08:41:49 am ---btw- does keybinder plugin assist personalities ?
--- End quote ---
If it uses ConfigManager, it has no choice. Personalitites are transparent.
--- End quote ---
what i wanted to ask is - can you use different key-bindings for different personalities ?
i did'nt study the code but keybinder plugin doesn't store the key assignments in the *.conf file - which is unique to each personality -
but uses another file. so i am in doubt about.
another approach would be to make it possible to select between different key mapping files but my first thought was to use the already existing personalty feature for it.
thomas:
Hmmm.... I see, it uses wxFileConfig. Well, that is not precisely optimal.
This does of course not support personalities.
mandrav:
It could use personalities though, by appending the current personality name to the INI filename...
Hint: Manager::Get()->GetPersonalityManager()->GetPersonality()
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version