button: add modifiers field in __newindex

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-04-27 14:32:39 +02:00
parent 061152b874
commit 39c351d112
1 changed files with 2 additions and 0 deletions

View File

@ -219,6 +219,8 @@ luaA_button_newindex(lua_State *L)
case A_TK_BUTTON:
button->button = luaL_checknumber(L, 3);
break;
case A_TK_MODIFIERS:
luaA_setmodifiers(L, 3, &button->mod);
default:
break;
}