dotfiles/main.lua

13 lines
307 B
Lua
Raw Normal View History

2023-08-17 14:14:00 +09:00
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