Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: BackInTheSandbox on April 29, 2020, 10:47:32 am

Title: Keybinder: Shortcuts from numeric Keypad don't work after upgrade to 20.03
Post by: BackInTheSandbox on April 29, 2020, 10:47:32 am
Hello,

I upgraded to Code::Blocks 20.03 (64Bit) and copied the cbKeyBinder10.ini into the new installation.
All my user defined keyboard shortcuts work, however not the ones I assigned with keys from the numeric keypad.
I use e.g. ALT-9 to open a Tool. It is shown as Alt-ō in the Settings (as was before with 17.12), but it doesn't work. A '○' appears in my code instead.
Using Ctrl-ō instead does also not work.
The Plugin Manager shows version '2.0.11 2020/03/2' for the 'Keyboard shortcuts' plugin. I guess that's the newest version?
Title: Re: Keybinder: Shortcuts from numeric Keypad don't work after upgrade to 20.03
Post by: Pecan on April 30, 2020, 07:44:10 pm
Hello,

I upgraded to Code::Blocks 20.03 (64Bit) and copied the cbKeyBinder10.ini into the new installation.
All my user defined keyboard shortcuts work, however not the ones I assigned with keys from the numeric keypad.
I use e.g. ALT-9 to open a Tool. It is shown as Alt-ō in the Settings (as was before with 17.12), but it doesn't work. A '○' appears in my code instead.
Using Ctrl-ō instead does also not work.
The Plugin Manager shows version '2.0.11 2020/03/2' for the 'Keyboard shortcuts' plugin. I guess that's the newest version?

I don't know why it even worked with version 17.12 .
But I'll look into it when I get time.
Title: Re: Keybinder: Shortcuts from numeric Keypad don't work after upgrade to 20.03
Post by: Pecan on June 01, 2020, 07:06:06 pm
Keyboard shortcuts using the number pad are now disallowed.
Rev: 12165.

It's a bug that they ever were allowed. It was caused by the old wxCodes version of KeyBinder that did not verify the accelerator.
This bug has existed for 10 years and is just now showing up.
Title: Re: Keybinder: Shortcuts from numeric Keypad don't work after upgrade to 20.03
Post by: oBFusCATed on June 01, 2020, 09:11:15 pm
What happens with old configs which have such bindings?
Title: Re: Keybinder: Shortcuts from numeric Keypad don't work after upgrade to 20.03
Post by: Pecan on June 01, 2020, 09:33:50 pm
What happens with old configs which have such bindings?

The illegal keybindings are now ignored and then removed the next time the shortcuts are saved.
Title: Re: Keybinder: Shortcuts from numeric Keypad don't work after upgrade to 20.03
Post by: BackInTheSandbox on June 02, 2020, 09:35:44 am
Keyboard shortcuts using the number pad are now disallowed.
Rev: 12165.

It's a bug that they ever were allowed.
A pity. I was thinking of it as a feature  :)
Title: Re: Keybinder: Shortcuts from numeric Keypad don't work after upgrade to 20.03
Post by: Pecan on June 02, 2020, 08:21:42 pm
Keyboard shortcuts using the number pad are now disallowed.
Rev: 12165.

It's a bug that they ever were allowed.

A pity. I was thinking of it as a feature  :)
It was just fine in the days when wxWidgets produced a numeric ascii char for the numpad keys, but wxWidgets is now producing a 2byte unicode char which will not work for accelerators.