Page 1 of 1

text typing according to keyboard

Posted: Tue Jul 14, 2009 2:05 am
by Sparx
in LoveUi i foudn something like this:

Code: Select all

				local chars={} --when keys shifted
				chars["1"]="!";chars["a"]="A";chars["k"]="K";chars["u"]="U";chars["]"]="}"
				chars["2"]="@";chars["b"]="B";chars["l"]="L";chars["v"]="V";chars["\\"]="|"
				chars["3"]="#";chars["c"]="C";chars["m"]="M";chars["w"]="W";chars[";"]=":"
				chars["4"]="$";chars["d"]="D";chars["n"]="N";chars["x"]="X";chars["\'"]="\""
				chars["5"]="%";chars["e"]="E";chars["o"]="O";chars["y"]="Y";chars[","]="<"
				chars["6"]="^";chars["f"]="F";chars["p"]="P";chars["z"]="Z";chars["."]=">"
				chars["7"]="&";chars["g"]="G";chars["q"]="Q";chars["`"]="~";chars["/"]="?"
				chars["8"]="*";chars["h"]="H";chars["r"]="R";chars["-"]="_";
				chars["9"]="(";chars["i"]="I";chars["s"]="S";chars["="]="+";
				chars["0"]=")";chars["j"]="J";chars["t"]="T";chars["["]="{";chars[" "]=" ";
to have upper case...
Is there a good function to convert a key signal into the country dependand char?
Not only having problems with specialchars but with z and y to....

Re: text typing according to keyboard

Posted: Tue Jul 14, 2009 6:54 am
by bartbes
Already implemented in 0.6.0.