Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I keep typing in Russian keyboard layout into Safari address bar by accident.
This drives me mad because I usually end up loading domain-for-sale pages.

Is there an extension or program to switch keyboard layout to US on +L before letting me enter the URL?

share|improve this question
    
Just to clarify, are you looking to invoke the Command + Space function (switching to next input source) while using Command + L? –  l'L'l Sep 24 '11 at 4:44
    
No. I don't need to switch to next input source, I need to switch to a specific input source. This is exactly my problem: I don't remember which input source was last selected when I press Cmd+L, and there is just no sense in it being other than US English for location bar. –  Dan Sep 24 '11 at 10:54
add comment

2 Answers

If you are using exactly two keyboard layouts, you can toggle between them with Command-Space if it is activated in the Language & Text System Preference. With that enabled, perhaps you could write a macro or Applescript to invoke that command along with Command-L.

enter image description here

enter image description here

share|improve this answer
    
I do constantly use Cmd+Space, the issue is with adjusting to precisely US layout automatically. How do I write an AppleScript to be invoked only in Safari on pressing Cmd+L? –  Dan Sep 24 '11 at 1:48
    
I am hoping that someone else here can help you with that. I'm not proficient with AppleScript! –  Wheat Williams Sep 24 '11 at 1:49
add comment
up vote 0 down vote accepted

Turns out, there is a program called Punto Switcher that does exactly that.

Punto Switcher

It puts a global hook on keyboard events and triggers automatic input switch (which is configurable) as soon as it detects nonsense being typed. Rather than relying on application types and input fields, it uses a dictionary (e.g. пщщпдуюсщь is recognized as mistyped google.com).

It also has a neat feature of “transcoding” mistyped words into another layout by pressing .

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.