Skip to content

Commit

Permalink
删除二重简码快捷键和state,通过开启词典方式进行控制。
Browse files Browse the repository at this point in the history
  • Loading branch information
Kun Chen committed May 10, 2024
1 parent fcf0234 commit 1f87b61
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
9 changes: 0 additions & 9 deletions lua/xhup/shortcut_processor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ local command = {
["iOS"] = {},
}
local option = {
["oei"] = {
["name"] = "openfly_enable_2nd_short",
["type"] = "list",
["value"] = {true, false},
},
["ojf"] = {
["name"] = "simplification",
["type"] = "toggle",
Expand All @@ -57,10 +52,6 @@ local function restore_saved_options(key, env)
local swt = env.switcher
local ctx = env.engine.context
local conf = swt.user_config
if swt:is_auto_save("openfly_enable_2nd_short") and conf ~= nil then
local state = conf:get_bool("var/option/openfly_enable_2nd_short")
ctx:set_option("openfly_enable_2nd_short", state)
end
end
end

Expand Down
2 changes: 0 additions & 2 deletions lua/xhup/shortcut_translator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ local labels = {
["ocm"] = {"[命令提示符]", "[Windows Terminal]"},
["odn"] = {"[文件管理器]"},
["oec"] = {"[Excel]"},
["oei"] = {"[启用二重简码]", "[关闭]"},
["ogj"] = {"[Rime 用户目录]"},
["oht"] = {"[画图]"},
["ojf"] = {"[简繁切换]"},
Expand All @@ -18,7 +17,6 @@ local labels = {
["ocm"] = {"[终端]"},
["odn"] = {"[访达]"},
["oec"] = {"[Excel]"},
["oei"] = {"[启用二重简码]", "[关闭]"},
["ogj"] = {"[Rime 用户目录]"},
["ojf"] = {"[简繁切换]"},
["ojs"] = {"[计算器]"},
Expand Down

0 comments on commit 1f87b61

Please sign in to comment.