User forums > Help

I want to modify the source code to support custom key mapping

(1/1)

lz978:
When using the internal editor of Code::Blocks (on the Windows platform), I found that pressing Shift and Space simultaneously does not input a space, whereas on the Ubuntu platform, Code::Blocks allows it, and other editors on Windows also support this. I have successfully built Code::Blocks from source, and now I want to determine which part of the code files needs to be modified to make Shift+Space work. Could you provide any information you know about this? It can be general; it doesn't need to pinpoint the exact code location.

Pecan:

--- Quote from: lz978 on January 06, 2025, 11:18:18 am ---When using the internal editor of Code::Blocks (on the Windows platform), I found that pressing Shift and Space simultaneously does not input a space, whereas on the Ubuntu platform, Code::Blocks allows it, and other editors on Windows also support this. I have successfully built Code::Blocks from source, and now I want to determine which part of the code files needs to be modified to make Shift+Space work. Could you provide any information you know about this? It can be general; it doesn't need to pinpoint the exact code location.

--- End quote ---

The keyboard is handled via Menu/Settings/Keyboard Shortcuts.
For me, on Windows with Codeblocks Nightly version, Shift+space is unassigned, and works as you describe.
Look to see  if something else has been assigned to shift + space key combination.

PB:
I have vanilla C::B 20.03 (i.e., no extra plugins) on Windows 10 and Shift+Space inserts a plain space there, at least in .h and .cpp files.

Navigation

[0] Message Index

Go to full version