From e4160a990936124bbcf9d06c19e41291ef899613 Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Mon, 4 Jun 2012 10:38:52 +0800 Subject: [PATCH] fix table index in sequenceToString method --- frontend/ui/inputevent.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/ui/inputevent.lua b/frontend/ui/inputevent.lua index 91d1be345..f9984eb55 100644 --- a/frontend/ui/inputevent.lua +++ b/frontend/ui/inputevent.lua @@ -315,8 +315,8 @@ function Input:sequenceToString(sequence) end end if #modifiers then - keystring[0] = table.concat(modifiers, "-") - keystring[1] = "-" + keystring[1] = table.concat(modifiers, "-") + keystring[2] = "-" end return table.concat(keystring) end