-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hs.keycodes.currentSourceID() sometime doesn't work #1429
Comments
I'm sorry to say that I am fairly unfamiliar with how input methods work, but I wonder if you've looked at using |
The problem still happens when I modify the code to It is interesting that I found that only in the hs console will the candidate window disappear when switching the input method with hs, which is just like how the system input method switching hot key does. All the other application such as MacVim, Firefox, Chrome, Sublime Text fails. What is the magic of hs console
|
According to the author of Karabiner, OS X has a bug and there's a workaround. I'm not sure if it's fixed in Sierra, though. See here. Out of curiosity, does |
@knu though it returns true, the input method still doesn't work... |
For me using P.S. With Sierra breaking original Karabiner Hammerspoon is my saver!! Thanks, guys! |
This still occurred in the latest version of Safari and macOS though. |
System: 10.11.6 (15G1421)
Hi, I love hammerspoon and I am so surprised that it can switch the input method.
The intent is simple,
opt
+cmd
+space
to switch between Chinese and English andopt
+cmd
+j
to switch between Japanese and English. But sometime only the icon in input method menu changed (shows the Chinese input is selected) while only English can be input.What is weird is that this seems to never happen in the hammerspoon console, while when it happens in Firefox, lose the focus on the textbox and get the focus again can solve the problem. The problem is more likely to happen in MacVim and Wechat as I tested.
Also, the candidate window won't disappear when switch the input method by hs.keycodes.currentSourceID(), which looks wired.
The text was updated successfully, but these errors were encountered: