SHIFT
→ SHIFTThe value standing for the Shift key — the one that makes capital letters.
SHIFTYou hand it to taetsiETshwerwe, usually to make something behave differently while Shift is held:
fa (taetsiETshwerwe(SHIFT)) { lebelo = 10; }
Watch out when using
taetsi. While SHIFT is held,taetsigives you the capital: pressingayields'A'.taetsiETshwerwe('a')becomesmaakaandtaetsiETshwerwe('A')becomesnnete. If you want the physical key regardless of Shift, usetaetsiETshwerwe('KeyA').
taetsiEKwadilwenever sees SHIFT at all — it skips keys that type no character.
The name stays English, because Shift is printed on the key. Written Setswana has SHIFT key as “taetsi ya SHIFT” — the key’s name untranslated.
Examples
Section titled “Examples”diri x = 60;
tiro setaLoeto() {
thalaKanefase(400, 200);
tlhalosa('Sediko se se tsamayang ka bonako fa SHIFT e tshwerwe mmogo le taetsi ya motswi. Tobetsa setshwantsho pele.');
}
tiro tshwantsha() {
bokamorago(238);
tlogelaMothalo();
tlatsaMmala(210, 130, 80);
diri lebelo = 2;
fa (taetsiETshwerwe(SHIFT)) {
lebelo = 8;
}
fa (taetsiETshwerwe(MOJA_MOTSWI)) { x = x + lebelo; }
fa (taetsiETshwerwe(MOLEMA_MOTSWI)) { x = x - lebelo; }
thalaSediko(thibela(x, 20, 380), 100, 40);
}