Search code examples
javascriptc#.netkeyboard

How to convert a Char by the position on the keyboard?


I need a way to convert the a string, or a char, to it's equivalent on the keyboard on a different language. and as such, in hebrew, for example, "ש" will become "a" or "A".

Couldn't find the proper way to do so without creating a giant switch statement or a dictionary.

any answer on either JS or C# will be great.


Solution

  • in case someone will look for this answer, It seems like that isn't a clear way of doing that without using a dictionary or a switch statement.

    basa.