You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thỉnh thoảng khi đang gõ cần phải chuyển đổi ngôn ngữ từ ENG sang VI bằng phím tắt, Openkey không phản hồi việc chuyển ngôn ngữ. Việc này xảy ra khi:
Chuyển qua lại giữ các app
khắc phục: chuyển sang 1 app đã từng gõ VI rồi chuyển sang app khác sẽ gõ VI lại được.
Tất cả các ứng dụng đều không gõ được VI
khắc phục: reboot lại OS và bật lại Openkey sẽ có thể gõ được lại VI.
Mình có thử dùng chuột chọn chuyển đổi ngôn ngữ sang nhưng tiếng Việt vẫn không gõ được mặc dù trên thanh Menu bar đã hiển thị icon hình chữ V. Thử reset lại setting mặc định nhưng không khắc phục được lỗi.
More info:
MacOS Ventura 13.6.7
Openkey v2.0.5 (build 49) from homebrew
App hay gặp lỗi: Sublime Text, Firefox, Telegram, LibreOffice
Bạn có đang bật zalo song song không? Nếu đang ở màn hình đăng nhập zalo, OpenKey bị secure input chặn lại. Zalo hoặc bất kỳ app nào có đàn nhập password.
Hiện mình cũng đang tìm cách sửa cùng với lỗi Splotlight.
Not sure if you're in wrong ticket. Nhưng trong tất cả trường hợp khi gõ mật khẩu mình có thói quen là tắt hẳn bộ gõ tiếng Việt luôn.
P.s: Mình chưa thử trên Zalo app vì mình không dùng Zalo :) What about a donating crypto wallet?
Ok bạn, tình trạng này bị khá lâu rồi, do ở chỗ nào đó có secure input,có lẽ cách giải quyết là tìm cách phát hiện app không phản hồi rồi tự bật app trở lại.
Cảm ơn bạn đã dùng OpenKey, mình chưa tạo ví crypto 😭
+1 mình phải tắt app OpenKey đi và mở lại mỗi lúc gặp tình trạng này.
Đến mức giờ mình nhấn tổ hợp phím Cmd + Space -> openkey -> Enter nó thành quen tay luôn r.
@ferez96
Bạn có cách nào khắc phục được tình trạng đó chưa. Mình gõ tiếng Việt chuyển nhiều lâu lâu lại bị đơ phải click lên icon trên thanh topbar tắt đi và bật lại khá phiền.
Nhiều khi bật lại xong dùng được mấy phút là lại bị tiếp luôn
Mình nghĩ đã tìm ra nguyên nhân của lỗi này. / I think I found the root cause.
The event tap is being disabled by macOS and never re-enabled.
initEventTap creates an active tap (OpenKeyManager.m:53). macOS puts a deadline on an active tap's callback. When OpenKeyCallback misses that deadline — which happens under sustained CPU load — the system switches the tap off and reports it back through the callback as the pseudo event type kCGEventTapDisabledByTimeout (kCGEventTapDisabledByUserInput is the other case).
On master:
OpenKeyCallback never checks type against those two values.
CGEventTapEnable is called exactly once, at the end of initEventTap.
grep -rn "kCGEventTapDisabled" . → no matches.
So once macOS turns the tap off, nothing turns it back on. Everything else in the app keeps running normally, which is exactly why the menu bar still shows "V" and the switch key still toggles, but nothing gets converted in any app — and why only relaunching OpenKey brings it back, matching what you described here.
You can confirm it from outside the process: CGGetEventTapList() reports an enabled flag per tap, and it shows OpenKey's tap as disabled while the process is still alive.
In my case the trigger is restarting Docker Desktop, because the VM boot and container restart pegs the CPU. Any sustained stall should do it.
Activity
tuyenvm commentedon Jun 12, 2024
Bạn có đang bật zalo song song không? Nếu đang ở màn hình đăng nhập zalo, OpenKey bị secure input chặn lại. Zalo hoặc bất kỳ app nào có đàn nhập password.
Hiện mình cũng đang tìm cách sửa cùng với lỗi Splotlight.
nit27 commentedon Jun 12, 2024
Not sure if you're in wrong ticket. Nhưng trong tất cả trường hợp khi gõ mật khẩu mình có thói quen là tắt hẳn bộ gõ tiếng Việt luôn.
P.s: Mình chưa thử trên Zalo app vì mình không dùng Zalo :)
What about a donating crypto wallet?
tuyenvm commentedon Jun 12, 2024
Ok bạn, tình trạng này bị khá lâu rồi, do ở chỗ nào đó có secure input,có lẽ cách giải quyết là tìm cách phát hiện app không phản hồi rồi tự bật app trở lại.
Cảm ơn bạn đã dùng OpenKey, mình chưa tạo ví crypto 😭
ferez96 commentedon Oct 3, 2024
+1 mình phải tắt app OpenKey đi và mở lại mỗi lúc gặp tình trạng này.
Đến mức giờ mình nhấn tổ hợp phím Cmd + Space -> openkey -> Enter nó thành quen tay luôn r.
nhannt315 commentedon Dec 24, 2024
@ferez96
Bạn có cách nào khắc phục được tình trạng đó chưa. Mình gõ tiếng Việt chuyển nhiều lâu lâu lại bị đơ phải click lên icon trên thanh topbar tắt đi và bật lại khá phiền.
Nhiều khi bật lại xong dùng được mấy phút là lại bị tiếp luôn
ferez96 commentedon Jan 2, 2025
@nhannt315 Mình work around bằng cách tắt app đi rồi mở lại thôi.
Steps:
Nếu máy mượt thì chỉ mất (ước chừng) ~3s cho toàn bộ thao tác trên.
duyhnynh commentedon Aug 28, 2026
Mình nghĩ đã tìm ra nguyên nhân của lỗi này. / I think I found the root cause.
The event tap is being disabled by macOS and never re-enabled.
initEventTapcreates an active tap (OpenKeyManager.m:53). macOS puts a deadline on an active tap's callback. WhenOpenKeyCallbackmisses that deadline — which happens under sustained CPU load — the system switches the tap off and reports it back through the callback as the pseudo event typekCGEventTapDisabledByTimeout(kCGEventTapDisabledByUserInputis the other case).On
master:OpenKeyCallbacknever checkstypeagainst those two values.CGEventTapEnableis called exactly once, at the end ofinitEventTap.grep -rn "kCGEventTapDisabled" .→ no matches.So once macOS turns the tap off, nothing turns it back on. Everything else in the app keeps running normally, which is exactly why the menu bar still shows "V" and the switch key still toggles, but nothing gets converted in any app — and why only relaunching OpenKey brings it back, matching what you described here.
You can confirm it from outside the process:
CGGetEventTapList()reports anenabledflag per tap, and it shows OpenKey's tap as disabled while the process is still alive.In my case the trigger is restarting Docker Desktop, because the VM boot and container restart pegs the CPU. Any sustained stall should do it.
PR with a fix: #332
fix(macOS): re-enable event tap after macOS disables it
fix(macOS): re-enable event tap after macOS disables it