dotfiles/main.lua
2023-08-17 14:14:00 +09:00

12 lines
307 B
Lua

local fcitx = require("fcitx")
fcitx.watchEvent(fcitx.EventType.KeyEvent, "handler")
function handler(sym, state, release)
if ((sym == 65307 and state == 0) or (sym == 91 and state == 4)) and
not release
then
fcitx.setCurrentInputMethod("keyboard-us")
end
return false
end