Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: yaoyansi on November 26, 2014, 04:43:24 am

Title: [Shortcuts] How to map 'Jump Back' short cut to 'Ctrl--'?
Post by: yaoyansi on November 26, 2014, 04:43:24 am
Hi all,
I know how to set the short cut of 'Jump frwd' to 'Ctrl-='  in "Settings --> Editor -->Keyboard shortcuts", but I can't set the short cut of 'Jump Back' to 'Ctrl--'. I'm wondering whether the short cut 'Ctrl--' is already bound in CodeBlocks? If so, which is bound to? How to unbind it?

Cheers
Title: Re: [Shortcuts] How to map 'Jump Back' short cut to 'Ctrl--'?
Post by: oBFusCATed on November 26, 2014, 10:56:04 am
Can you try a  nightly build? I think this bug has been fixed already.
Title: Re: [Shortcuts] How to map 'Jump Back' short cut to 'Ctrl--'?
Post by: Jenna on November 26, 2014, 01:14:59 pm
It does not work for me, neither on linux (FC20, C::B  trunk) nor on windows (10016) .
Title: Re: [Shortcuts] How to map 'Jump Back' short cut to 'Ctrl--'?
Post by: ollydbg on November 26, 2014, 02:08:53 pm
It does not work for me, neither on linux (FC20, C::B  trunk) nor on windows (10016) .
The bug happens on my XP too.
When I hit the "CTRL+-" key, the string show in the editor, and later it get removed automatically.
I try to debug the keybinder plugin, but it looks like I can't hit breakpoints in all the plugin sources under the "src\plugins\contrib" folder, but breakpoints under core plugin's source(such as codecompletion.cpp) file works fine. That's strange, any one has the debugging issue like me?
Title: Re: [Shortcuts] How to map 'Jump Back' short cut to 'Ctrl--'?
Post by: Pecan on November 26, 2014, 07:10:39 pm
Ctrl-- and Ctrl-+ do not yet work in Keybinder because of the parsing mechanism used to catch "Ctrl-".

I used to have a fix from someone. I'll see if I can find it.
Title: Re: [Shortcuts] How to map 'Jump Back' short cut to 'Ctrl--'?
Post by: Pecan on November 26, 2014, 09:08:04 pm
Applied Petrov patch to handle Ctrl-- and Ctrl-+
Svn 10037
Title: Re: [Shortcuts] How to map 'Jump Back' short cut to 'Ctrl--'?
Post by: ollydbg on November 27, 2014, 04:07:13 pm
I try to debug the keybinder plugin, but it looks like I can't hit breakpoints in all the plugin sources under the "src\plugins\contrib" folder, but breakpoints under core plugin's source(such as codecompletion.cpp) file works fine. That's strange, any one has the debugging issue like me?
The strange thing is that if I copy the source code files (e.g. the whole folder "byogame") from "src\plugins\contrib" to "src\plugins", then adjust the output file paths, and build this plugin again, then I can correctly hit breakpoints in byogame's source code.  :(
Title: Re: [Shortcuts] How to map 'Jump Back' short cut to 'Ctrl--'?
Post by: oBFusCATed on November 27, 2014, 06:43:37 pm
Have you inspected the output of the debugger?
Title: Re: [Shortcuts] How to map 'Jump Back' short cut to 'Ctrl--'?
Post by: ollydbg on November 28, 2014, 02:15:17 am
Have you inspected the output of the debugger?

I'm hunting this bug for several hours, and finally I see it is a GDB bug, I filed it in https://sourceware.org/bugzilla/show_bug.cgi?id=17659 with details.
Title: Re: [Shortcuts] How to map 'Jump Back' short cut to 'Ctrl--'?
Post by: ollydbg on November 30, 2014, 08:53:58 am
Applied Petrov patch to handle Ctrl-- and Ctrl-+
Svn 10037

Hi, Pecan, in fact, the original author is not OBF, see: https://sourceforge.net/p/codeblocks/tickets/69/