User forums > Using Code::Blocks

Insert curly brackets as in Linux (AltGr+8 and AltGr+9)

(1/2) > >>

pozzugno:
I have an Italian keyboard, without curly brackets. In Linux I can insert them with AltGr+8 and AltGr+9, in Windows I can insert them with Alt+123 and Alt+125.

Can I configure Code::Blocks editor to mimic the Linux way? It seems Keyboard Shortcuts plugin can link the shortcut only to a menu functionality.

Radek:
This is not a problem of Code Blocks but a problem of your keyboard driver. It seems to be rather poor if it does not allow you to produce rather frequent characters. Possible solutions:

(1) Get a better keyboard driver.
(2) Use keyboard switching (the most common solution) between Italian and US (or UK) keyboards. When you are programming, you need a "US" character set.

Code Blocks are printing what they get from the driver. They do not contain a keyboard remapper.

pozzugno:

--- Quote from: Radek on October 19, 2012, 12:06:14 pm ---This is not a problem of Code Blocks but a problem of your keyboard driver. It seems to be rather poor if it does not allow you to produce rather frequent characters.
--- End quote ---
I know very well it isn't a "problem" of Code::Blocks, I was finding a workaround in Code::Blocks.
The keyboard driver is not poor: all italian keyboards haven't "physical" curly brackets keys and the operating system invents a different way to insert these special characters. As I said, Linux uses AltGr+7 and AltGr+0, Windows uses ASCII codes (Alt+<ASCII code>).

Anyway I think it should be very simple for a program to remap a key into a different character, unfortunately Code::Blocks hasn't this remapping function.

Martin K.:
whats about "shift + alt gr + è" and "shift + alt gr + +" , the same as square brackets but with shift?

Martin

jarod42:
Just tested on Windows with CB 10.5
and it works with both layout Italian and Italian (142)
Alt Gr + shift + 'è' for the italian layout (http://en.wikipedia.org/wiki/Keyboard_layout#Italian)

And Alt Gr + Number for Italian 142

Navigation

[0] Message Index

[#] Next page

Go to full version