fix: typo in selectmenu.lua

This commit is contained in:
Qingping Hou
2012-04-09 17:38:50 +08:00
parent ff60a41604
commit 81c9ff1cf5
2 changed files with 5 additions and 5 deletions

View File

@@ -145,11 +145,11 @@ function SelectMenu:addAllCommands()
end
end
)
local KEY_Q_to_E = {}
local KEY_Q_to_P = {}
for i = KEY_Q, KEY_P do
table.insert(KEY_Q_to_E, Keydef:new(i, nil, ""))
table.insert(KEY_Q_to_P, Keydef:new(i, nil, ""))
end
self.commands:addGroup("Q to E", KEY_Q_to_E,
self.commands:addGroup("Q to P", KEY_Q_to_P,
"Select menu item with Q to E key as shortcut",
function(sm, keydef)
sm.selected_item = sm:getItemIndexByShortCut(