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
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)
F10 on GTK is a reserved key and cannot be mapped by applications... Search the forum for hacks...
Quote from: yaoyansi on August 30, 2014, 01:57:42 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.
Quote from: cacb on August 30, 2014, 05:47:44 PM
(I am guessing you are on Linux)
Yes, I'm on CentOS7
Quote from: 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...
Do you mean the hacks for GTK? or for C::B?
There were post with patches for codeblocks that removed this limitation, I don't know if they still work thought.
Quote from: ollydbg on August 30, 2014, 02:18:03 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.
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".
:'(
http://forums.next.codeblocks.org/index.php/topic,8303.0.html