     }
 }
 
-RunSelectedCommand1:
+RunSelectedCommand:
+    if (SubStr(A_ThisHotkey, 1, 1) == "~")
+    {
+        ControlGetFocus, ctrl,
+        if (ctrl == g_InputArea)
+        {
+            return
+        }
+    }
+
     index := Asc(SubStr(A_ThisHotkey, 0, 1)) - g_FirstChar + 1
-
-    RunCommand(g_CurrentCommandList[index])
-return
-
-RunSelectedCommand2:
-    ControlGetFocus, ctrl,
-    if (ctrl == g_InputArea)
-    {
-        return
-    }
-
-    index := Asc(A_ThisHotkey) - g_FirstChar + 1
 
     RunCommand(g_CurrentCommandList[index])
 return

KeyHelpText()
{
    return ""
    . "键入内容 搜索，回车 执行，Alt + 字母 执行，Esc 退出`n"
    . "按 Tab 后再按 字母或数字 也可执行字母对应功能`n"
    . "按 Tab 后 Shift + 字母或数字 定位到对应功能`n"

{
    key := Chr(g_FirstChar + A_Index - 1)
    ; lalt +
    Hotkey, !%key%, RunSelectedCommand
    ; tab +
    Hotkey, ~%key%, RunSelectedCommand
    ; shift +
    Hotkey, ~+%key%, GotoCommand
}
