This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
3751_Creator's profile picture

Change key for the SAVE/EXIT/PRINT

Started by 3751_Creator, 01 December 2012 - 11:36 PM
3751_Creator #1
Posted 02 December 2012 - 12:36 AM
Hello CC community!!

I have a question regarding azerty keyboards.

So as I just said, I got an azerty keyboard (I'm french). When I want to make a Table/Array,
I need to do CTRL + "{" or "}", but as you can understand, it doesn't work because of the CTRL key being
assign to the Save/Exit/Print.

My question: Is it possible to assign the S/E/P to a other key?


Note: I know I can use an external editor, but I would enjoy to be able to make tables/arrays without getting out of MC.


Thanks to all; ~3751_Creator
billysback #2
Posted 02 December 2012 - 01:16 AM
Go in to rom/programs and look for the file "edit", go to line 553 and edit this line:

elseif param == keys.leftCtrl or param == keys.rightCtrl then
with

elseif param == keys.KEY then
KEY being the key you want to use.
3751_Creator #3
Posted 02 December 2012 - 03:31 AM
thanks A LOT!!!

what I want to do know, it's to have ONLY the right CTRL button assign for the S/E/P.

So I wrote that

elseif param == keys.rightCtrl then
but doesn't work!!

Thanks; ~3751_Creator
Orwell #4
Posted 02 December 2012 - 03:35 AM
The right CTRL key does strange things for me in CC (I'm on azerty as well). Try making it a totally different button maybe? Also, I can type the special characters by pressing CTRL once, and then press it again and keep it pressed until I hit the '{' key.