3 posts
Posted 22 August 2014 - 09:17 PM
Hi, I'm using a german keyboard layout and in order to write a backslash (\) I need to press [AltGr] + [-] (that's how it would be pressed on an english keyboard). On english keyboard layouts there is no need to press multiple keys, but on a german keyboard there are a couple of keys which needs the [AltGr] key pressed previously. Some of these characters are: {[]}\~|
However the Ctrl / AltGr keys triggers the menu and I'm unable to type in these chars. Do I miss something or why do the authors of ComputerCraft mapped the menu to these keys? Is there a way to remap the functionality to another key?
3790 posts
Location
Lincoln, Nebraska
Posted 22 August 2014 - 09:26 PM
On non-english keyboards, we're aware that key-modifiers may be needed to write other characters. In order to do this, press the AltGr key once, then use your AltGr+<key> key combo, and it should enter the character you need.
Edited on 22 August 2014 - 07:26 PM
3 posts
Posted 22 August 2014 - 09:33 PM
Ah! Thank you, Cranium. This is a very helpful information.
Would it be possible to exclude the key with the code 19 completely in the next mod versions? Or has it a second functionality? This way this modifier key could be used for typing the above characters while the both Ctrl keys would still trigger the menu. The AltGr key is not used in Minecraft anyway, ifaik.
3790 posts
Location
Lincoln, Nebraska
Posted 23 August 2014 - 01:40 AM
Well, the commands to/from java are still the same though. They don't discern the difference in regions on keyboards.
If you look at the wiki,
you can see how LWJGL (and by extension - ComputerCraft) interprets raw information from the keyboard. Most - if not all - modern keyboards follow this basic layout, regardless of locale or language, and we just use those events the best we can.