Skip to content
Snippets Groups Projects
Commit 62a32fde authored by dg's avatar dg
Browse files

Right click on a hotkey will delete it

git-svn-id: http://svn.net-core.org/repos/t-engine4@1066 51575b47-30f0-44d4-a5cc-537603b46e54
parent afb4e401
No related branches found
No related tags found
No related merge requests found
......@@ -118,6 +118,9 @@ function _M:onMouse(button, mx, my, click)
if mx >= zone[1] and mx < zone[1] + zone[3] and my >= zone[2] and my < zone[2] + zone[4] then
if button == "left" and click then
self.actor:activateHotkey(i)
elseif button == "right" and click then
self.actor.hotkey[i] = nil
self.actor.changed = true
else
self.actor.changed = true
self.cur_sel = i
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment