Code::Blocks Forums

User forums => Help => Topic started by: yaoyansi on August 30, 2014, 01:57:42 pm

Title: I can't map keyboard shortcut "Debug>Next line" to F10
Post by: yaoyansi on August 30, 2014, 01:57:42 pm
Hi all,
I wanna create a MSVC like keyboard shortcut for my CodeBlocks in CentOS7.
I mapped several keys and it works fine. But I can't map Debug>NextLine to F10 successfully.
I mapped Debug>NextLine to F10, but when I launch debugging and press F10, the File menu pops out.
And I can't mapp "Menu bar>File" to another keyboard shortcut.

Could you tell me how to map keyboard shortcut "Debug>Next line" to F10?
Cheers
Title: Re: I can't map keyboard shortcut "Debug>Next line" to F10
Post by: ollydbg on August 30, 2014, 02:18:03 pm
It works fine here, I'm working under WinXP, see the screen shot below:
(http://i683.photobucket.com/albums/vv194/ollydbg_cb/2014-08-30201752_zps8e9c4cb9.png)


Title: Re: I can't map keyboard shortcut "Debug>Next line" to F10
Post by: oBFusCATed on August 30, 2014, 02:31:55 pm
F10 on GTK is a reserved key and cannot be mapped by applications... Search the forum for hacks...
Title: Re: I can't map keyboard shortcut "Debug>Next line" to F10
Post by: cacb on August 30, 2014, 05:47:44 pm
Hi all,
I wanna create a MSVC like keyboard shortcut for my CodeBlocks.
I mapped several keys and it works fine. But I can't map Debug>NextLine to F10 successfully.
I mapped Debug>NextLine to F10, but when I launch debugging and press F10, the File menu pops out.
And I can't mapp "Menu bar>File" to another keyboard shortcut.

Could you tell me how to map keyboard shortcut "Debug>Next line" to F10?
Cheers

I always wanted to do the exact same thing under Linux (I am guessing you are on Linux). After using MSVC (and still using it) "forever" on windows, those keys are stuck in my debug fingers and Linux debugging is therefore not as pleasant.

Unfortunately, some of those keys appear to be reserved under Linux/gtk.
Title: Re: I can't map keyboard shortcut "Debug>Next line" to F10
Post by: yaoyansi on August 31, 2014, 12:53:54 pm
(I am guessing you are on Linux)
Yes, I'm on CentOS7
Title: Re: I can't map keyboard shortcut "Debug>Next line" to F10
Post by: yaoyansi on August 31, 2014, 12:55:05 pm
F10 on GTK is a reserved key and cannot be mapped by applications... Search the forum for hacks...
Do you mean the hacks for GTK? or for C::B?
Title: Re: I can't map keyboard shortcut "Debug>Next line" to F10
Post by: oBFusCATed on August 31, 2014, 01:29:05 pm
There were post with patches for codeblocks that removed this limitation, I don't know if they still work thought.
Title: Re: I can't map keyboard shortcut "Debug>Next line" to F10
Post by: yaoyansi on August 31, 2014, 01:32:39 pm
It works fine here, I'm working under WinXP, see the screen shot below:
Yes, my codeblocks also shows 'F10' for the shortcut of 'Next line' in the menu. But it doesn't work.
Title: Re: I can't map keyboard shortcut "Debug>Next line" to F10
Post by: yaoyansi on August 31, 2014, 01:35:28 pm
I read this thread http://www.cyberciti.biz/faq/howto-create-keyboard-shortcuts-in-gnome/, and had a try, but failed.

Here is the details.
In CentOS7, here is the GUI interface for setting keyboard shortcuts:
Applications> SystemTools>Settings>Keyboard>Shortcuts

I check all the shortcuts, F10 is not mapped to any shortcuts.
I also changed the shortcuts of  'Open the application menu' from Super+F10 to Alt+F.
 After I open C::B, F10 still can't be mapped to "Bebug>Next line".
:'(
Title: Re: I can't map keyboard shortcut "Debug>Next line" to F10
Post by: oBFusCATed on August 31, 2014, 02:07:33 pm
http://forums.codeblocks.org/index.php/topic,8303.0.html