I do not know about determining that the Caps Lock key was pressed, But if
you just see the capital letters are being typed, you can activate it, I
guess.
The rest is possible through adding
document.addEventListener("click",functionName).

☆PhistucK


2009/11/9 akasi <[email protected]>

>
> hi all!
>
> I am completely new to writing chrome extensions, so I need your
> advices. I am thinking about creating so-called Translit extension.
> Translit is used  to encode Cyrillic letters with Latin ones. Since I
> am ukrainian I want sometimes to type some Cyrillic text in the
> fields. However, I have an english keyboard and it is quite annoying
> to use some services to translate Latin letters to Cyrillic.
>
> My idea is to use a Caps Lock to switch between default input (say
> Lating) and Translit. In other words, whenever Translit mode is active
> I want to replace Latin character or combination of characters into
> their Cyrillic equivalents.
> For example:
> ch ---> ч
> b   ---> б
> ya ---> я
>
> and so on..
>
> The question is if it is possible to implement such simple
> functionality with chrome extensions and what do I start with?
>
> Thank you all in advance for your answers.
>
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups
> "Chromium-extensions" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<chromium-extensions%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/chromium-extensions?hl=en
> -~----------~----~----~----~------~----~------~--~---
>
>

--

You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=.


Reply via email to