Lutzifer / keyboardSwitcher

List, show and switch OSX Keyboard Layouts from the command line.
82 stars 10 forks source link

Switching keyboard sometimes not having any effect #6

Closed dvcrn closed 6 years ago

dvcrn commented 6 years ago

I am trying to switch between English <> Japanese <> Korean <> Chinese. I have a few hotkeys in keyboard masetro set to execute keyboardSwitcher with the target keyboard.

The menubar item is usually getting changed just fine, but sometimes the keyboard still types in the previous language until I tab into a different app. For example just now I can switch to Japanese, but when I try to switch to Chinese or Korean, it just writes in English

Lutzifer commented 6 years ago

Sorry for the late answer.

If you are already in KeyboardMaestro, you should be able to directly change the layout using KeyboardMaestros System Control -> Set Keyboard Layout Action.

dvcrn commented 6 years ago

Hey, the problem is that switching between languages that use different characters isn't working correctly in most cases when directly activating them through system commands. I am currently using a workaround in keyboardmaestro but was hoping you found a way to get by it

My workaround activates the languages, then switches back and forth once to actually fully active it. If I don't do that, it happens often that the menuicon shows that I am in Japanese/Korean/Chinese but the typing is still in English.

screen shot 2018-04-06 at 8 57 09
Lutzifer commented 6 years ago

Can you give me the commands you are using?

Lutzifer commented 6 years ago

another alternative for you to try could be https://github.com/utatti/kawa

dvcrn commented 6 years ago

Thanks, I am going to give kawa a try.

This looks like the issue I was talking about: https://github.com/utatti/kawa/issues/11